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

来源:互联网 发布:互联网金融 数据产品 编辑:程序博客网 时间:2024/05/16 09:40

原文地址::http://blog.csdn.net/xiaolongwang2010/article/details/7550505


相关网帖


1、错误找不到WinsdkVer.h----http://bbs.csdn.net/topics/380128304?page=1#post-396334704


警告报告:

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

 

处理办法:

第一步:

" #define _WIN32_WINNT 0x0502 "

StdAfx.h中添加上述宏定义。

备注:必须在stdafx.h中所有#include 文件之前添加此代码。

第二步:

StdAfx.h头文件里面加上#include <SDKDDKVer.h>有关于平台的定义

备注:如果StdAfx.h里面有了就不用加 #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 you wish to support before including SDKDDKVer.h.

 

 

全文参考:http://blog.sina.com.cn/s/blog_8d7f7f3c01010s3g.html

                   http://blog.csdn.net/ayan200112/article/details/6918975



//==============================================================================================

备注::

1》WinSDKVer.h+SDKDDKVer.h文件在PC上的存储路径为----C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include





0 0
原创粉丝点击