Original address:: http://blog.csdn.net/xiaolongwang2010/article/details/7550505
Related web Posts
1, error can not find WinsdkVer.h----http://bbs.csdn.net/topics/380128304?page=1#post-396334704
Warning Report:
_WIN32_WINNT not defined. Defaulting to _win32_winnt_maxver (see WINSDKVER.H)
Treatment methods:
The first step:
"#define _WIN32_WINNT 0x0502"
Add the above macro definitions in StdAfx.h.
Note: You must add this code before all the # include files in stdafx.h .
Step Two:
Add # include <SDKDDKVer.h> a definition of platform in StdAfx.h header file
Note: If there is a StdAfx.h inside there is no need to add #include <SDKDDKVer.h>!
Including SDKDDKVer.h defines the highest available Windows platform.
If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
Set the _WIN32_WINNT macro to the platform-wish to support before including SDKDDKVer.h.
Full text reference: http://blog.sina.com.cn/s/blog_8d7f7f3c01010s3g.html
http://blog.csdn.net/ayan200112/article/details/6918975
//==============================================================================================
Note::
1 "The Winsdkver.h+sdkddkver.h file on the PC is stored on a path of----C:\Program Files\Microsoft Sdks\windows\v7.0a\include
_WIN32_WINNT not defined. Defaulting to _win32_winnt_maxver (see WINSDKVER.H)