改掉CFrameWnd的Class name程序运行时就弹出“建立空文档失败”的对话框?
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.lpszClass =_T("SuoNetworkWatchServe");
return TRUE;
}