VC执行错误:File:timecore.cpp line 40请问如何解决??急急请高手指点!
sjbjn 2004-12-14 04:59:01 我现在调用了MFC函数:
CTime(2039,1,1,0,0,0,0);
运行时报错,错误信息如下:
debug assertion failed
program:d:\program files\plam\hotsync.exe
File:timecore.cpp
Line:40
For information on how your program can cause an assertion
failure,see the visual c++ documentation on asserts.
就出现上述错误,只要输入的年在1970-2038年之间的就没有错误,否则就会有错误。
不过2038以后的年份应该没有问题,MSDN提示的在1970年-3000年,可是为什么不行呢?
MSDN文档:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_CTime.3a3a.CTime.asp
我打了VC++6的补丁sp6, 软件环境:xp sp1.
还请高手给与指点!多谢!