为什么很少有vc ++应用程序在Win7中失败并在XP中能正常工作 [英] why few vc++ applications fails in Win7 and works fine in XP

查看:83
本文介绍了为什么很少有vc ++应用程序在Win7中失败并在XP中能正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有适用于XP的vc ++应用程序,但是它的某些功能在Win7上不起作用.大多数时候应用程序崩溃.


我想知道以解决此类依赖于OS的问题,我应该在哪里研究?

我是否需要修改,编码或需要一些其他设置??

在此先感谢您.

hello all,


I have vc++ application that works fine for XP, but some of its feature does not work at Win7.Most of the time application crashes.


I want to know in order to resolve this kind of problem that is OS dependent,where should i look into?

should i need to modify, code or some extra settings are required.?

Thanks in advance.

推荐答案

您需要做的第一件事是查看失败的地方并尝试理解原因.这可能是XP操作系统的一种更改,但也可能只是您的代码中的一个错误而已.没有看到失败的代码,就无法猜测.
The first thing you need to do is look at where it is failing and try to understand why. This may be a change in the operating system from XP, but it may also be a bug in your code that has only just come to light. Without seeing the failing code it is impossible to guess.


在XP上运行良好但在Vista/Windows 7上将失败的应用程序的大多数原因都与新的更严格的安全要求有关.较新的操作系统.在较新的OS上,完全不允许您执行某些有关文件放置,rgeistry访问的操作,以及其他操作.最后,很难说出为什么Win7上的应用程序被破坏了.您唯一的希望是拥有源代码,以便可以对其进行调试.如果您不这样做,则实际上是在拧螺丝,或者至少是在制造商愿意更新至少十年之久的软件的意愿下被抬起头来.
Most of the reasons an application that runs fine on XP but will fail on Vista/Windows 7 has to do with new tighter security requirements for the newere OSs. Some things that you could do regarding file placement, rgeistry access, and other things are simply not allowed on the newer OSs. In the end tough, it''s difficult to tell exactly why an app is broken on Win7. Your only hope is to have the source code so you can debug it. If you don''t, you''re essentially screwed, or at the very least, pressed up against the willingness of the manufacturer to update a piece of software that''s at least a decade old.


您也可以尝试以兼容模式运行该应用程序,以查看它是否可以解决问题.
You can also try to run the application in compatibility mode to see if it fix the problem.


这篇关于为什么很少有vc ++应用程序在Win7中失败并在XP中能正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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