|
From: Dmitry B. <db...@ma...> - 2001-07-17 14:26:14
|
Marco Manyevere <mma...@me...> writes: > I'm new to both this list and COM. ... but you already know about #import directive :-) > How do I create an #include file for a > COM DLL with all the interface definitions? In VC++, you can #import the > dll in your code? Is there an equivalent way in mingw? If you are trying to use some standard Microsoft component, it may be already defined in w32api headers (oleauto.h, oleidl.h) etc. For inproc server it should be enough - just include necessary header. You can even declare third-party interface yourself using DECLARE_INTERFACE_ macro (see oleauto.h for examples). But in the more compex case you will need .idl definition and Microsoft midl compiler which is non-free and does not support gcc out of the box. #import directive is also not supported. So you probably will have to use other compiler. Hope to hear from you soon, Dmitry |