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

问题描述

帮助!

我已经对此进行了广泛的研究,无法找到解决方案。

我的项目在VS2005中编译得很好但现在我得到了解决方案没有理由的逻辑失败的健全性检查!

I have researched this extensively and cannot find a solution.
My project compiled fine in VS2005 but now I get the faollowing sanity check that fails with logic that doesn't make sense!

C:\Program Files\Microsoft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\sdkddkver.h

#if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
#error _WIN32_WINNT settings conflicts with _WIN32_IE setting
#endif

 值如下((0x0500< 0x0500)&&(0x0500> 0x0601)

 the values are as follows ((0x0500 < 0x0500) && (0x0500 > 0x0601)

这在逻辑上是不正确的,为什么错误执行?

that is not logically true so why is the error executing??

 

推荐答案

#ifndef WINVER // Specifies that the minimum required platform is Windows 2000.
#define WINVER 0x0500 // Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows 2000.
#define _WIN32_WINNT 0x0500 // Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows Me.
#define _WIN32_WINDOWS 0x0500 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 5.5.
#define _WIN32_IE 0x0550 // Change this to the appropriate value to target other versions of IE.
#endif 


这篇关于_WIN32_WINNT设置与_WIN32_IE设置冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-26 08:02