出现的编译时的错误
错误信息如下:
StdAfx.cpp
WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
d:\vc.net\Vc7\atlmfc\include\afxv_w32.h(230) : error C2065: “DWORD_PTR” : 未声明的标识符
d:\vc.net\Vc7\atlmfc\include\afxv_w32.h(230) : error C2143: 语法错误 : 缺少“;”(在“GetWindowThreadProcessId”的前面)
d:\vc.net\Vc7\atlmfc\include\atlconv.h(92) : error C2061: 语法错误 : 标识符“LONG_PTR”
.................
这个程序原先在2000上运行的,能够调试成功,现在我想在XP上调试,出现了上面的问题,请问该怎么解决,谢谢
问题点数:0、回复次数:5Top
1 楼pknife(小李飞刀)回复于 2004-12-01 14:59:34 得分 0
没碰到过,顶Top
2 楼hjunxu(hjun)回复于 2004-12-01 14:59:39 得分 0
在工程的预编译定义中加上_WIN32_WINNT=0x500试试Top
3 楼oyljerry(【勇敢的心】→ ㊣提拉米苏√㊣)回复于 2004-12-01 21:05:48 得分 0
嗯,缺少winver版本定义Top
4 楼cyjtan(阿碳)回复于 2004-12-02 13:00:43 得分 0
回家试试在说,Top
5 楼cyjtan(阿碳)回复于 2004-12-06 09:11:54 得分 0
还是不行啊Top




