碰到Debug Assertion Failed! 明人请指点!!
执行程序,运行一个模块后,出现Debug Assertion Failed!
Program:路径………………
File:afx.inl
Line:437
For information on how you program can cause an assertion
failure ,see the Visual C++ documention on asserts.
然后,我重试,自动跟踪后,它自动跳到
extern int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPTSTRlpCmdLine, int nCmdShow);
extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}
和#ifdef WPRFLAG
mainret = (
#else /* WPRFLAG */
mainret = WinMain(
#endif /* WPRFLAG */
GetModuleHandle(NULL),
NULL,
lpszCommandLine,
StartupInfo.dwFlags & STARTF_USESHOWWINDOW
? StartupInfo.wShowWindow
: SW_SHOWDEFAULT
);
#else /* _WINMAIN_ */
不知是什么原因,请高手指点~~~~~~~~~~~~~