我的C ++程序是否适用于所有Microsoft Windows版本 [英] Does my C++ program work in all Microsoft windows versions

查看:102
本文介绍了我的C ++程序是否适用于所有Microsoft Windows版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

所以让我说我用简单的GUI编写简单的win32 api应用程序..它是否适用于以下版本的Windows {XP,Vista,7,8 / 8.1,10(32bit& ; 64位)}?

i在xp版本中运行它没有什么问题,但我把它设置为

Hello
so let's say i wrote simple win32 api application with simple GUI .. does it work in the following version of windows {XP ,Vista,7, 8/8.1,10 (32bit & 64bit)} ?
i had little problem running it in xp version but i set it to

Visual Studio 2015 - Windows XP (v140_xp)



此选项会影响我的程序速度吗?



我尝试了什么:



i在Windows xp(32位)和Windows 7(32位)以及Windows 10(64位)中测试

工作正常


does this option will effect my program speed ?

What I have tried:

i Tested it in Windows xp (32bit) and windows 7 (32bit) and in windows 10 (64bit)
works fine

推荐答案

理论上没有区别。但这假设所有系统都使用相同的硬件。



更改项目CPU设置(支持的最低CPU)可能会有所不同,并且32和64之间存在差异位构建。但这些可以忽略不计。



使用VisualStudio设置支持的最低Windows版本会影响可以使用的API函数。选择XP时,程序无法直接使用Vista或更高版本引入的所有API函数。在检查Windows版本后,它们只能与后期绑定一起使用。
There is theoretically no difference. But this assumes that all systems use identical hardware.

There may be differences when changing the project CPU settings (minimum supported CPU) and there are differences between 32 and 64-bit builds. But these are negligible.

Setting the minimum supported Windows version with VisualStudio affects the API functions that can be used. When choosing XP, all API functions introduced with Vista or later can't be used directly by your program. They can only be used with "late binding" after checking the Windows version.


通常,实际Windows版本的问题点是Windows XP(32位)。如果它适用于此,一切都应该没问题。速度不是真正的问题,因为差异非常小。最好的优化是缩小绘图过程,重新加载应用程序资源(如位图)和使用系统资源,如文件或注册表访问。



内在问题app是使用驱动程序,DLL或访问权限等系统资源。这不受简单用户界面的影响,但要注意并始终测试应用程序。
Normally the problem point of actual Windows versions is Windows XP (32 bit). If it works on that, everything should be fine. The speed isnt a real issue because the difference are very small. The best optimization is to minize the drawing process, reloading app resource (like bitmaps) and the use of system resources like file or registry access.

The inner problem of an app is the use of system resources like drivers, dll or access rights. That isnt affected with an simple UI, but watch out and always test the app.


这篇关于我的C ++程序是否适用于所有Microsoft Windows版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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