_WIN32_WINNT not defined错误 解决办法

VC6.0项目转换成vs2010项目 时遇到这个问题
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
解决方法:

“#define _WIN32_WINNT 0x0502”在stdafx.h中添加上述宏定义

注意:必须在stdafx.h中所有#include 文件之前添加此代码。问题解决!!!秒杀之,呵呵

转载于:https://www.cnblogs.com/geekvc/p/6657305.html

你可能感兴趣的:(_WIN32_WINNT not defined错误 解决办法)