Re: DirectShow, compilation problem after install SDK

Tech-Archive recommends: Fix windows errors by optimizing your registry



untitled wrote:
after i installed the SDK for platform and directx, i configured the
VC directory for lib and include of both.

now after i added the first line in a windows prject :
#include "DShow.h"

i got this error messages, dosens of them:

D:\Program\Microsoft Platform SDK for Windows Server 2003 R2\Include
\strsafe.h(288) : error C4439: 'StringVPrintfWorkerA' : function
definition with a managed type in the signature must have a __clrcall
calling convention

don't know what did i screw up.

whats the problem? thanks!

Your project is set up for managed code - DirectX is native code. Are you
using VC++ Express, by any chance? (If you are, look here:
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ for help in
configuring VC++ Express for SDK development). If you're using VC++
Standard or higher, then go into your project properties and change the
project type from managed to unmanaged (native).

-cd


.