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

警告报告:

_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

 

 

 

  • 3
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值