我在调试时看到了Dialog创建失败
CCcDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}
nResponse r的值为-1
请问为什么出现这个现象,我用的这Dlg,且我在OnInitDialog()中将所有我自己加上去的语句都
屏掉了