I have made an MFC DLL, using the Application Wizard.
In that DLL I inserted a dialog, with some common controls and and ActiveX control (a better grid than the one provided by Microsoft).
The problem arises when I call the function that creates the dialog. Apparently the DoModal method fails because of the ActiveX control (if the dialog doesn't have the ActiveX control there is no problem).
As when I use ActiveX control in other applications (.EXE) I inserted this line in the InitInstance member of the DLL.
Also, I inserted this line in the exported function of the DLL that creates the dialog:
I think that there is a function call or something that is missing, but I can't find any examples about using an ActiveX control from a DLL.