How to get the HINSTANCE of a dll?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
How to get the HINSTANCE of a dll? Is there a way to get the HINSTANCE from a dll, without saving the HINSTANCE from the DllMain or calling GetModuleHandle("DLLName")? I want to use the HINSTANCE in a COM-Object, thus its not elegant to hand over it from the DllMain. Otherwise the dll should exists with different names, witch make it inconvenient to use a filename in the code. Thanks Juergen