
ActiveX control in an ActiveX control
Is it possible for an ActiveX control to host other ActiveX controls? I am
trying to create an ActiveX control (using
MFC and the ActiveX Control
Wizard) to build a control that hosts the IE control. I add the IE control
to the project, but it fails when I try to create the control. I've tried
hosting other controls, like circ3, with the same result.
A crash occurs in CWnd::InitControlContainer().
BOOL CWnd::InitControlContainer()
{
TRY
{
if (m_pCtrlCont == NULL)
m_pCtrlCont = afxOccManager->CreateContainer(this); /// CRASHES HERE
}
END_TRY
Mike