_using_v110_sdk71_等价于VS2013 [英] _using_v110_sdk71_ equivalent for VS2013

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

问题描述

要在命令行中将VS2012中的XP作为目标,我们使用了_USING_V110_SDK71_. VS2013和工具集v120_xp等效于什么?

解决方案

那不是它的工作方式.回到VS2012,您使用了项目+属性",常规",平台工具集"设置,并选择了v110_xp.这使得几个设置发生了变化.作为副作用,您还将获得_USING_V110_SDK71_宏的定义.没错,其中一项更改是,您将使用SDK版本7.1的标头和库而不是版本8.7.1是最后一个仍与XP兼容的SDK版本.

实际上什么都不重要,到目前为止,您获得的最重要的更改是链接器的系统,最低要求的版本"设置.使用v110_xp可以确保将此设置更改为XP版本号5.01.没有它,您的目标是6.00,即Vista版本号.这是一个非常重要的设置,Windows会注意这一点,并在告诉您设计程序可以在最新的Windows版本上良好运行时将其关闭.

它在VS2013中仍然相同.选择v120_xp工具集.

To target XP in VS2012 in the command line, we used _USING_V110_SDK71_. What is the equivalent for VS2013 and toolset v120_xp?

解决方案

That's not the way it worked. Back in VS2012, you used the Project + Properties, General, Platform Toolset setting and selected v110_xp. Which made several setting changes. As a side-effect, you'd also get the _USING_V110_SDK71_ macro defined. Which is accurate, one of the setting changes is that you'll use the SDK version 7.1 headers and libraries instead of version 8. 7.1 is the last SDK version that's still compatible with XP.

Which isn't actually important for anything, by far the most important change that you got was the linker's System, Minimum Required Version setting. Using v110_xp ensured that this setting was changed to 5.01, the XP version number. Without it you target 6.00, the Vista version number. It is a very important setting, Windows pays attention to it and turns off several appcompat shims when you tell it that you designed your program to run well on the latest Windows versions.

It still works the same in VS2013. Select the v120_xp toolset.

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

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