I have an mfc application that makes use of multiple dlls for various functions. I have no problems if all I want to do is display a CDialog from one of these dlls but any attempt to display a CDHTMLDialog dialog results in a fail, it seems that the error happens within the DoDataExchange block.
I have calls to AFX_MANAGE_STATE and tried AfxEnableControlContainer but no go. The error also happens if I try to host an activex control on a CDialog window.
Any ideas where I may be going wrong?