cbpporter Messages: 1428 Registered: September 2007
Ultimate Contributor
Even with problems stated above, I managed to get things working.
Most of the functionality is working and I haven’t had any problems with C++ initialization sections (I guess DLL mechanism is smart enough to call the code that initializes all the global class variables).
There is just one issue. I can't create TopWindows with code from the DLL. Even in simple cases, a function exported by the DLL which creates a TopWindow and calls OpenMain won't show it (if called without DLL the windows appears and is unresponsive until event loop; I would like the same behavior with DLLs), and a function which starts the EventLoop will try to write to NULL.
Is this related to the TLS issue you mentioned above? I'm loading the DLL with LoadLibrary/GetProcAddress.