Debug assertion failure for wincore
hi,
I am getting the error as shown below,I am not able to make out which handle is causing that.All other active x controls are working fine except for one tab control which holds other controls as tab.
bCreate = pWndOcx->CreateControl(
/* CLSID */ clsid,
/* title */ _T(""),
/* dwStyle */ 1, // don't show window immediately with WS_VISIBLE,
/* rect */ m_rcBounding,
/* parent wnd */this,
/* nID */ 1,
/* pPersist */ NULL,
/* bStorage */ false,
/* bstrLicKey */ NULL);
//CEG 02/03/98 - Check here to ensure that the hWnd for the control got
// created. If not, we return FALSE.
if((!bCreate)||(pWndOcx->m_hWnd == NULL) || !(::IsWindow(pWndOcx->m_hWnd)))
return FALSE;
When i run this code it gives me this error
Debug assertion failed for wincore.cpp.it is failing in Attach function of wincore.cpp
Assert(m_hWnd)
Can u please help me to tell what is causing this error
|