I have a Dialog class in a Regular DLL and I want to instantiate it from a MFC Ext Dll. All the entry points of my Regular Dll start with AFX_MANAGE_STATE(GetStaticModuleState()). Still, if when calling the constructor from the MFC Ext DLL, I have torubles. Just as if The module state was not set correctly at construction of a CWnd Object. A workaround is to implement a Global function in the regular Dll that calls the construtor in the scope of the regular Dll.

But, what if I want to code a derived class of this dialog in the MFC Ext Dll ?