简体   繁体   English

用于XP和Win7的操作系统

[英]Which OS to use to build For XP and Win7

I have a software which has to be deployed in Windows Xp and Windows 7 32 bit versions. 我有一个必须在Windows Xp和Windows 7 32位版本中部署的软件。 Is it Ok to build the software in Win XP for for both platforms? 是否可以在Win XP中为两个平台构建该软件?

or 要么

Should I build in Xp for deploying in Xp and build in Win7 for deploying in Win7? 我应该在Xp中构建以在Xp中进行部署,还是在Win7中构建以在Win7中进行部署?

The software is developed in C++ 该软件是用C ++开发的

Both operating system will do the job. 两种操作系统都可以胜任。 Just use the proper SDK version and deployment target constants (see targetver.h in C++ project template). 只需使用正确的SDK版本和部署目标常量即可(请参阅C ++项目模板中的targetver.h )。

Yes you can build on any (modern) windows version for deployment on any other. 是的,您可以在任何(现代)Windows版本上构建,以在其他任何版本上进行部署。
But you probably want to test on both! 但是您可能想对两者进行测试!

If you really have to choose, use XP since Win7 is most likely XP-compatible. 如果必须选择,请使用XP,因为Win7最有可能与XP兼容。

I mean, there are more chances that your program will not run under XP if developped with Win7 than the opposite. 我的意思是,如果使用Win7开发,您的程序在XP下无法运行的机会要多得多。

Of course, if you use the correct libs, it should be OK, but what if by mistake you use a Win7 only feature ? 当然,如果使用正确的库,应该可以,但是如果错误地使用了仅Win7功能怎么办?

More recent version are expected to be compatible with old versions, not the opposite. 预期较新的版本将与旧版本兼容,而不是相反。

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

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