Whilst investigating creation of a dialog class exported from a DLL, I found another problem that I could not solve.
Instead of linking statically to my DLL that contains a CDialog derived class, I tried to dynamically load the DLL. This I can do: I load my DLL via LoadLibrary, call an exported function to return a new instance of my dialog class, then Create() the dialog in my calling EXE. However, I am finding that I get an immediate access violation within WinCore.cpp.
Obviously something is messed up with the messaging subsystem, caused by this dialog being created in my DLL.
Can someone suggest what the problem could be please?
Sample project at http://www.yousendit.com/download/OHo0b24ycWZRWUpFQlE9PQ