I get the message
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
from every cpp file.
I tried adding the following to the main file before any headers (got this from here
#define _WIN32_WINNT 0x05010000 //I want to support XP
and I still get these messages for different cpp files. Any suggestions on how I could stop these messages from displaying I am using VS2012
The constant you want to define is _WIN32_WINNT
not _WIN32_WINNT_MAXVER
. The possible values are listed here: http://msdn.microsoft.com/en-us/library/aa383745%28VS.85%29.aspx
You should define it before including windows.h
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.