Hi all,
I'm trying to "wrap" my unmanaged DirectShow video player class so I can use it in a WinForm. I'm am approching this by creating a COM object in VS .NET 2003. I need to add a property to my COM class (the one that implements the exposed interface) that requires qedit.h. When I try to build in the IDE, I get an error:
<snippet>
Processing C:\Program Files\Microsoft Platform SDK\include\qedit.idl
qedit.idl
midl : command line error MIDL1001 : cannot open input file dxtrans.idl
LINK : fatal error LNK1240: failed to compile IDL content
</snippet>
I tried to use 'midl' on the command-line to create dxtrans.idl but get different errors. When I try 'midl dxtrans.idl' I get:
<snippet>
midl : command line error MIDL1001 : cannot open input file dxtrans.idl
</snippet>
If I try 'midl dxtrans.h' I get:
<snippet>
Processing .\dxtrans.h
dxtrans.h
C:\Program Files\Microsoft Platform SDK\Include\.\winnt.h(587)
: error MIDL2003
: redefinition : Int64ShllMod32
C:\Program Files\Microsoft Platform SDK\Include\.\winnt.h(587)
: error MIDL2025
: syntax error : expecting ; near "{"
C:\Program Files\Microsoft Platform SDK\Include\.\winnt.h(589)
: error MIDL2026
: cannot recover from earlier syntax errors; aborting compilation
</snippet>
My INCLUDE env var is set as:
<snippet>
INCLUDE=C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Include\.;C:\P
rogram Files\Microsoft Platform SDK\Include\.;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\include\.
</snippet>
Any ideas on bypassing this problem would help. Maybe it's not possible to make an IDL for dxtrans.h? Perhaps there is an easier way to use DirectShow with managed code?
Start Free Trial