运行(F5),当点击一个按钮打开一个无模式对话框时,弹出“发送错误报告”的错误提示对话框
运行(Ctr+F5),打开一个无模式对话框时,提示“Unhandled exception: ...(MFC42D.dll)...Access Violation.”
程序停在了WINOCC.CPP的下面这个函数:
BOOL CWnd::ShowWindow(int nCmdShow)
{
ASSERT(::IsWindow(m_hWnd));//光标在这里! if (m_pCtrlSite == NULL)
return ::ShowWindow(m_hWnd, nCmdShow);
else
return m_pCtrlSite->ShowWindow(nCmdShow);
}
请问这是什么问题?如何解决?
运行(Ctr+F5),打开一个无模式对话框时,提示“Unhandled exception: ...(MFC42D.dll)...Access Violation.”
程序停在了WINOCC.CPP的下面这个函数:
BOOL CWnd::ShowWindow(int nCmdShow)
{
ASSERT(::IsWindow(m_hWnd));//光标在这里! if (m_pCtrlSite == NULL)
return ::ShowWindow(m_hWnd, nCmdShow);
else
return m_pCtrlSite->ShowWindow(nCmdShow);
}
请问这是什么问题?如何解决?
dlg->Create( IDD_JAVA, NULL );
dlg->ShowWindow( SW_SHOW );
{
// TODO: Add your control notification handler code here
if(pDlgModalLessChild==NULL)
{
pDlgModalLessChild= new CDlgModalLessChild(this);
pDlgModalLessChild->Create(IDD_DIALOG1);
}
pDlgModalLessChild->ShowWindow(SW_SHOW);
pDlgModalLessChild->SetFocus();
}这是我的代码,有错吗?