|Date:||October 25, 2004 / year-entry #374|
|Summary:||If you're writing a static library, you may have need to access the HINSTANCE of the module that you have been linked into. You could require that the module that links you in pass the HINSTANCE to a special initialization function, but odds are that people will forget to do this. If you are using...|
If you're writing a static library, you may have need to access
If you are using a Microsoft linker, you can take advantage of a pseudovariable which the linker provides.
EXTERN_C IMAGE_DOS_HEADER __ImageBase; #define HINST_THISCOMPONENT ((HINSTANCE)&__ImageBase)
So there's your
[Raymond is currently on vacation; this message was pre-recorded.]
<-- Back to Old New Thing Archive Index