为什么在Windows XP上运行的某些应用程序不适用于Windows 7。 [英] why Some Applications running on windows XP is not working for windows 7.

查看:149
本文介绍了为什么在Windows XP上运行的某些应用程序不适用于Windows 7。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

API的问题和代码中使用的驱动程序或其他一些东西是否特别引发问题,使Windows XP的代码无法在Windows 7上运行?

Is it the Problem of API's and drivers used in code or some other thing is raising problem specifically, to make the code of windows XP not running on windows 7?

推荐答案

好的,你得到了解决方案1和解决方案2,首先充分限制了适用性,并且对所有情况提出了一个非常糟糕的建议,除了更糟糕的情况,第二个完全错误。我将解释。



首先:不管你信不信,所有我用NT技术构建的应用程序,包括Windows NT,W2000和XP,都适用于Windows 7这是因为我只是写得足够准确。这是因为发生了向后兼容性。此外,前向兼容性(严格来说,不支持),情况并不坏。最近,我假设我们应该只支持Window 7及更高版本,并且当我被要求支持XP时,发现不兼容,并且只是因为我明确检查了权限提升,这个概念在XP。所以,许可...



从我帮助其他开发人员的所有经验来看,与Windows 7及其后期人员不兼容的所有原因主要归结为权限问题。简而言之:人们编写的应用程序即使对于XP也不太合法,但标准的开箱即用XP设置太宽容了。如果使用XP收紧文件系统权限,则会出现类似问题。



在大多数情况下,这是使用某些非合法目录甚至是硬盘的情况编码路径。当硬编码路径有用时,没有任何情况。在所有情况下,应在运行时使用用户输入,一些配置文件,用户配置文件数据和环境定义的其他路径计算所有路径。我在过去的答案中对此进行了解释:

如何找到我的程序目录可执行目录),

如何查找我的程序目录当前目录,特殊文件夹



当然,可以有一些其他问题,但在实践中它们都非常罕见。 (太糟糕了,你没有在你的问题中提出你的问题的任何信息。)



对于解决方案1,使用XP模式,这是极端的工具在极端紧急需要的情况下使用。它危及系统安全。修复你的应用程序要好得多。



-SA
Okay, you got Solutions 1 and 2, first makes limited applicability at best and presents a pretty bad advice for all cases except the worse, and the second one it totally wrong. I'll explain.

To begin with: Believe or not, all my applications built in NT technology, which includes Windows NT, W2000 and XP, works on Windows 7. This is because I simply wrote them accurately enough. This is because backward compatibility takes place. Moreover with forward compatibility (which is, strictly speaking, not supported), the situation is not that bad. Recently, I assumed that we should support only Window 7 and later, and, when I was asked to support XP, found an incompatibility, and only because I explicitly checked up the privilege elevation, the notion absent in XP. So, permission…

From all my experience of helping other developers, all the set of reasons of incompatibilities with Windows 7 and later people face is majorly reduced to permission issues. In a nutshell: people write applications which are not quite legitimate even for XP, but standard out-of-the box XP settings are too forgiving. If one tightens up file system permissions even with XP, the similar problems appear.

In most cases, this is the case of using some non-legitimate directories or even hard-coded paths. There are no situation when hard-coded paths could be useful. In all cases, all paths should be calculated during runtime using user input, some configuration files, user profile data and other paths defined by the environment. This is explained in my past answers:
How to find my programs directory (executable directory),
How to find my programs directory (current directory, "special folders").

Of course, there can be a number of other problems, but they are all quite rare, in practice. (Too bad you did not present any information on your problems in your question.)

As to Solution 1, using "XP" mode, this is the tool for extreme use in a case of extreme urgent need. It compromises system safety. Fixing your application is much better.

—SA


因为Windows Compatability问题。



在这里你可以找到解决方案。



http://windows.microsoft.com/en-us/windows7/install-and-use- windows-xp-mode-in-windows-7 [ ^ ]



如果你得到了一个帮助,请标记为已回答回答
Its Because Windows Compatability issue.

Here you can find a solution.

http://windows.microsoft.com/en-us/windows7/install-and-use-windows-xp-mode-in-windows-7[^]

Please Mark as answered if you got a help from the answer


是的,因为可能会更改或删除应用程序所依赖的库。要解决兼容性问题,您必须使用针对不同平台的特定SDK重建项目,不仅仅是Windows 7,还包括Windows 8.此外,某些API可能已被弃用。因此,为了使应用程序正常工作,您还需要在应用程序中使用最新的API。
Yes, because the libraries that applications depend on may be changed or removed. To solve the compatibility issue, you have to rebuild your project with the specific SDK for different platforms, not just Windows 7, but also Windows 8. In addition, some APIs may be deprecated. So to make the app work, you also need to use the latest APIs in your application.


这篇关于为什么在Windows XP上运行的某些应用程序不适用于Windows 7。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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