Log in

View Full Version : COM+: creating a tlb file from axextend.idl (DirectShow) with midl


stax76
22nd May 2004, 11:08
Hello,
can anyone tell me why I get always the following error:

expecting a type specification near "CLSID"

this is the definition where the error occurs:

typedef struct {
CLSID Clsid; // class id of the filter
LPWSTR Name; // name of filter
} REGFILTER;

Stef
24th May 2004, 12:45
Did you include the header file with typedef for CLSID ?

Stefan

stax76
24th May 2004, 19:27
I had to include unknwn.idl and objidl.idl first but it created only header files and no type library. Maybe because not all interfaces are ole automation compatible (I don't know much about C++ and COM+).

Finally I got it working by rewriting and adding some interfaces to NETMasters DShowNET, it took me rather long to build and render a graph but at least I've learned some things, I'm no longer worried about native calls