转自http://blog.sina.com.cn/s/blog_8d7f7f3c01010s3g.html
VS2010中自己编程时遇到这个问题
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
解决办法:
“#define _WIN32_WINNT 0x0502”
在stdafx.h中添加上述宏定义。
!!!!!备注:必须在stdafx.h中所有#include 文件之前添加此代码。
问题解决!