项目名为MDiTest:在 CMDiTestApp::InitInstance()中添加OpenDocumentFile(null),程序崩溃,请问是什么原因:
BOOL CMDiTestApp::InitInstance()
{
....................................................................
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_MDITESTYPE,
RUNTIME_CLASS(CMDiTestDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CMDiTestView));
AddDocTemplate(pDocTemplate);
OpenDocumentFile(null);
....................................................................
}