Hello,
can somebody tell why I get 103 errors
with /clr and none with /clr:oldSyntax
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

including dshow.h compiles not with /clr but with /clr:oldSyntax
Wowbagger_TIP
Ken Holcombe
this is the code causing the first errors:
/* here is where we pull in the MIDL generated headers for the interfaces */
typedef interface IRpcStubBuffer IRpcStubBuffer;
and this are the 20 first errors:
Error 4 error C2146: syntax error : missing ';' before identifier 'IRpcStubBuffer' C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\objbase.h 398
Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\objbase.h 398
Error 6 error C2079: 'IRpcStubBuffer' uses undefined struct 'IRpcStubBuffer' C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\objbase.h 398
Error 7 error C2146: syntax error : missing ';' before identifier 'IRpcChannelBuffer' C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\objbase.h 399
Error 8 error C2371: 'IRpcChannelBuffer' : redefinition; different basic types C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\objbase.h 399
Error 9 error C2146: syntax error : missing ';' before identifier 'IUnknown' C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 48
Error 11 error C2146: syntax error : missing ';' before identifier 'AsyncIUnknown' C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 54
Error 13 error C2146: syntax error : missing ';' before identifier 'IClassFactory' C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 60
Error 15 error C2371: 'IUnknown' : redefinition; different basic types C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 110
Error 16 error C2065: 'This' : undeclared identifier C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 136
Error 17 error C2065: '_pRpcChannelBuffer' : undeclared identifier C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 137
Error 18 error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 137
Error 19 error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 138
Error 20 error C2146: syntax error : missing ')' before identifier '_pRpcMessage' C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\unknwn.h 138
DOMcCrea
Thanks,
Echo
I hope the download time is not too much of an inconvenience and I'm sure you'll find the benefits of the new syntax outweigh it.