在学习《深入浅出MFC第二版》照着打的源代码不能运行,编绎无错。
Meuck 2004-01-19 12:01:06 用的是Visual C++ 6.0
书是第6章 P266的那页
错误是:
Debug Assertion Failed!
Program: XXXX
File: winocc.cpp
Line: 301
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
后来我用向导生成了一个简单的MFC程序,把它的
CXXXWinApp::InitInstance()
改为
this->m_pMainWnd = new CMyFrameWnd();
this->m_pMainWnd->ShowWindow( m_nCmdShow );
this->m_pMainWnd->UpdateData();
也是同样的错。
不知是什么原因?