简体   繁体   English

定位多个Windows版本

[英]Targeting multiple Windows versions

I'm developing my application under Windows 8.1 but I want to also target Windows 7 and 8. Can I compile executables for different platforms other than the one I'm developing in, and if so how can I accomplish this? 我正在Windows 8.1下开发我的应用程序,但我也想以Windows 7和8为目标。我可以为我正在开发的平台以外的其他平台编译可执行文件吗?

PS. PS。 I'm currently using visual studio 2012 professional. 我目前正在使用Visual Studio 2012 Professional。

You don't need to do anything special. 您不需要做任何特别的事情。 The operating system on which you run your build system is largely irrelevant. 运行构建系统所基于的操作系统在很大程度上无关紧要。 Simply don't use any newer features that are not available with Windows 7, and your executable will run. 只需不使用Windows 7所不具备的任何较新功能,即可运行您的可执行文件。 The mechanism described in "Using the Windows Headers" would help you avoid using such a feature accidentally. “使用Windows标头”中描述的机制将帮助您避免意外使用此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM