Advertisement

11.30.2005 at 01:37PM PST, ID: 21648551
[x]
Attachment Details

DirectShow and C++ .NET managed code - Cannot create COM interop

Asked by InsertCleverName in Microsoft Visual C++.Net, Adobe Type Manager, Microsoft Programming

Tags: directshow, cannot, create

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
[+][-]12.01.2005 at 06:26AM PST, ID: 15396308

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.01.2005 at 12:54PM PST, ID: 15399793

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 01:45PM PST, ID: 15423310

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 02:26PM PST, ID: 15423645

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 02:37PM PST, ID: 15423726

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 02:44PM PST, ID: 15423763

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.06.2005 at 04:30PM PST, ID: 15432680

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]12.10.2005 at 02:21PM PST, ID: 15460223

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C++.Net, Adobe Type Manager, Microsoft Programming
Tags: directshow, cannot, create
Sign Up Now!
Solution Provided By: modulo
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32