EDN Admin
Well-known member
Hi forum,
Yesterday, after many attempts and give up, Ive decided to master IDL (and ATL) programming for my next COM object. But seriously guys what is wrong with me (or the SDK)?? Im trying to get the get the IMAGE_FILE_HEADER structure in an interface. Ive searched
the entire SDK and it seems its not defined anywhere in an idl file so I tried to import the Windows, and Winbase... and WinDef... and WinNT... ObjBase... I Defined the MIDL_PASS macro... wait for the sun and made the rain dance before trying for the thousands
time... Nothing!!! I cant get rid of duplicate definitions in include files.
Im still a student so I dont really have any experience in it and I cant find anybody to give me a good answer. So maybe someone here can tell me : Did I missed something or the SDK is trying to get rid of us MIDL (COM) Programmers??? Cauz I start to
thinks its still around for legacy code. And Im pretty sure It wont be better with Win8! dunno why...!
Basically, heres where I am :
<pre class="prettyprint import "oaidl.idl";
import "ocidl.idl";
[
uuid("..."),
custom(..., "..."),
helpstring("...")
]
interface Foo: IUnknown {
import "Windows.h"
}[/code]
Thanks a lot for your answers and patience.
Cheers.
Baccali
View the full article
Yesterday, after many attempts and give up, Ive decided to master IDL (and ATL) programming for my next COM object. But seriously guys what is wrong with me (or the SDK)?? Im trying to get the get the IMAGE_FILE_HEADER structure in an interface. Ive searched
the entire SDK and it seems its not defined anywhere in an idl file so I tried to import the Windows, and Winbase... and WinDef... and WinNT... ObjBase... I Defined the MIDL_PASS macro... wait for the sun and made the rain dance before trying for the thousands
time... Nothing!!! I cant get rid of duplicate definitions in include files.
Im still a student so I dont really have any experience in it and I cant find anybody to give me a good answer. So maybe someone here can tell me : Did I missed something or the SDK is trying to get rid of us MIDL (COM) Programmers??? Cauz I start to
thinks its still around for legacy code. And Im pretty sure It wont be better with Win8! dunno why...!
Basically, heres where I am :
<pre class="prettyprint import "oaidl.idl";
import "ocidl.idl";
[
uuid("..."),
custom(..., "..."),
helpstring("...")
]
interface Foo: IUnknown {
import "Windows.h"
}[/code]
Thanks a lot for your answers and patience.
Cheers.
Baccali
View the full article