including dshow.h compiles with /clr:oldSyntax but not /clr

F

Frank Skare

Hello,

can somebody tell why I get 103 errors
with /clr and none with /clr:blush:ldSyntax
when I include the dshow header file.
I would like to use the new syntax.

Win32 console app generated by VC Express
with line added to include dshow.h

#include "stdafx.h"
#include <dshow.h>

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

Regards,
stax
 
I

ismailp

No, you can't use new syntax until Platform SDK - Whidbey
incompatibility is solved.

Ismail
 
G

Guest

Frank Skare said:
Hello,

can somebody tell why I get 103 errors
with /clr and none with /clr:blush:ldSyntax
when I include the dshow header file.
I would like to use the new syntax.

Win32 console app generated by VC Express
with line added to include dshow.h

#include "stdafx.h"
#include <dshow.h>

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

Regards,
stax

Which edition are you using? If you are using Expess, the PSDK does not ship
with that version. You can download the latest version from
http://www.microsoft.com/downloads/...43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en

Thanks,
Kapil
 
J

Jochen Kalmbach [MVP]

Which edition are you using? If you are using Expess, the PSDK does not ship

And you should be aware of the fact that you can´t add the directiries
in the settings... :)

So please look at the following thread:
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2995

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
C

Carl Daniel [VC++ MVP]

Jochen Kalmbach said:
And you should be aware of the fact that you can´t add the directiries in
the settings... :)

So please look at the following thread:
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2995

Neither of which would be consistent with the OPs statement that it compiles
with /clr:blush:ldSyntax but not with /clr (new syntax).

To the OP: you're running afoul of the fact that 'interface struct' is now a
"spaced keyword" in C++/CLI, while it's a #define in existing PSDK header
files (the PSDK is supposed to be fixed by the time VC 2005 goes to RTM, if
I recall correctly).

Find the point in the PSDK header files where

#define interface struct

appears and replace it with

#define interface intr
#define intr struct

or something equivalent (just prevent 'interface' and 'struct' from being
adjacent with only whitespace intervening).

-cd
 
C

Carl Daniel [VC++ MVP]

Carl Daniel said:
#define interface intr
#define intr struct

intr is way too short - amost guaranteed to clash with something. How 'bout

#define interface_define struct
#define interface interface_define

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top