Thanks, just tried that but the same problem ocured. I've even tried using std:fstream in DllMain to write out some info but nothing happens :/
If I manually do myClass myinstance(getModuleHandle("myDll.dll")) it works as expected, but that obviously means the DLL can never be renamed.