【VS】_WIN32_WINNT not defined

VS2015中自己编程时遇到这个问题
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
解决办法:
#define _WIN32_WINNT 0x0502

在stdafx.h中添加上述宏定义。
备注:必须在stdafx.h中所有#include 文件之前添加此代码。
问题解决!

猜你喜欢

转载自blog.csdn.net/HelloZEX/article/details/81223343