如下的代码会产生变异时候的警告和NOTE怎么样消除这些东东,为什么会产生些东东。
...
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0500 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
#endif
...以下是编译时候的信息
...
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition
d:\xxx v1.6\xxx v1.6\interface\xxx\stdafx.h(30) : see previous definition of '_WIN32_WINDOWS'
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.
....
...
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0500 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
#endif
...以下是编译时候的信息
...
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition
d:\xxx v1.6\xxx v1.6\interface\xxx\stdafx.h(30) : see previous definition of '_WIN32_WINDOWS'
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.
....
解决方案 »
- system modal 对话框能实现 类似DoModal的效果吗?
- 难道没有牛人可以做出来么!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 求教 游戏
- WIRESHARK编译报出unresolved external symbol _main的错误?
- SetTimer, 用OnTimer会丢失定时消息,但是用回调不会丢失,为什么?
- InvokeHelper()函数是干什么的,各参数什么意思
- 画曲线时遇到的问题
- 测能力的问题2,大家再来试试
- 关于#pragma comment(linker, " ")有个问题,我发现有两个地方说的怎么矛盾呢?
- 谁能告诉我在哪可以找到JPEG以及GIF98的格式文档?要E文的,最好是官方文档。
- ondraw函数与onpaint有何区别哦。
- 求JAVA的新书
可以把这些删除掉。你也可以通过VC6的向导生成一个程序,比较下两个工程的stdafx.h