CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTry1Doc),
RUNTIME_CLASS(CMainFrame),
RUNTIME_CLASS(CTry1View));
AddDocTemplate(pDocTemplate);
上面的代码可以用
CMainFrame *m_pMainFrame=new CMainFrame;
m_pMainFrame->Create(,,,);
m_pMainFrame->,,,
来代替