I need to register some window classes inside dll. If I somehow pass the HINSTANCE of main app (.exe) to the .dll and use it for window cls registering it works ok. If I use the dll'l HINSTANCE the class is registered either, but the creation of window fails. I want to do it without passing the HINSTANCE parameter to the .dll. Something like InitCommonControls ()... Thx.
Oxygenium