_WIN32_WINNT问题 [英] Problem with _WIN32_WINNT

查看:94
本文介绍了_WIN32_WINNT问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我收到此错误
_WIN32_WINNT未定义.默认为_WIN32_WINNT_MAXVER(请参见WinSDKVer.h)
我已经在预处理器定义中将此_WIN32_WINNT定义为
_WIN32_WINNT = 0x0502
为什么我仍然收到此错误?
请回复我.

Hello
I am getting this error
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
I was already defined this _WIN32_WINNT in Preprocessor definitions as
_WIN32_WINNT=0x0502
why i am still getting this error?
please reply me.

推荐答案

定义的正确格式为
The correct format for the define is
#define _WIN32_WINNT 0x0502


并且此语句必须位于StdAfx.h中的任何#include之前,或者用于构建预编译标头的所有内容之前.


and this statement must come before any #includes in the StdAfx.h, or whatever include you use to build the precompiled headers.


vallikelam.
通过此链接
http://support.microsoft.com/kb/320479

,这会为您提供帮助.
Hi, vallikelam.
Go through this link
http://support.microsoft.com/kb/320479

, this will help you.


这篇关于_WIN32_WINNT问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆