Original Post
I have a real problem.I hava a dialog based application from where, through a script language(Lua) i make a function call in a dll, wich should open me another window.The problem is that, in spite the window appears, I get the error that the RegisterClass function fails.Well i use for the second window in the WNDCLASS structure the dll instance(GetModuleInstance(NULL)) and everything should work.The same code, moved from the dll to an exe with a WinMain function works.Where might be the mistake?
Mihai