问题 (
File: winmdi.cpp Line: 141):
错误描述:在Debug模式下报错,Release模式下正常。
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!
Program: D:\Projects\MfTrim-h30ct1\源代码\Debug\MfTrim.exe
File: winmdi.cpp
Line: 141
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
终止(A)
重试(R)
忽略(I)
---------------------------
错误原因:主菜单必须要包含“窗口”和“帮助”子菜单,我的项目中去掉了“窗口”子菜单,在诊断时报错。
解决方法:添加“窗口”子菜单,将其放在“帮助”子菜单前。
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!
Program: D:\Projects\MfTrim-h30ct1\源代码\Debug\MfTrim.exe
File: winmdi.cpp
Line: 141
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
终止(A)
重试(R)
忽略(I)
---------------------------