MistyD
MistyD

Reputation: 17253

Stop the message _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)

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

Upvotes: 4

Views: 8870

Answers (1)

Retired Ninja
Retired Ninja

Reputation: 4925

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.

Upvotes: 1

Related Questions