Hi all,
In my MDI when i try to execute i am getting an assertion error pointing to wincore.cpp line 311.
BOOL CWnd::Attach(HWND hWndNew)
{
ASSERT(m_hWnd == NULL); // only attach once, detach on destroy
ASSERT(FromHandlePermanent(hWndNew) == NULL);
// must not already be in permanent map
here is the snippet of the mfc inbuilt code where the assertion error occurs.
The error occurs when the main window is tried to display(attach).
This is the part of the code in the application where the assertion error occurs.
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
return FALSE;
Could you please help me to weed out the possible cause of this assertion error