How to get a HINSTANCE of the current programm ?
Hi,
even if it sounds like a joke, I mean it serious. :D
Ok, for sure I know that this HINSTANCE is passed via arguments to WinMain.
But what I want to do is, to write some C++-classes that need a HINSTANCE to to program they are used in, and for some reasons, I don't want to pass itfrom WinMain.
So is there a possibility to get a HINSTANCE of the current module from anywhere inside the code ?
thanks for your help
highhead
Thought about that initially
Thanks again ;)
and you are sure a HMODULE is equal to a HINSTANCE ?
regards
highhead