exe文件无效 [英] exe file not working

查看:152
本文介绍了exe文件无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我用Windows XP在vs2008中创建了exe文件,但它在windows7中不起作用

Dear All,
I have created exe file in vs2008 with Windows XP,but its not working in windows7

推荐答案

其中一个最典型的原因是保护文件系统。



人们经常使用一些非法的文件路径名。严格来说,这些应用程序首先是不正确的,但XP容忍这样的错误,但Windows 7是严格的。



你可以推荐用户提供您使用的目录的正确访问权限,一切都会工作,但这不是一个解决方案。基本上,没有任何硬编码文件路径可用的情况。您需要根据系统配置或应用程序位置计算这些路径。我在过去的答案中提供了完整的信息:



条目汇编:如何找到我的程序目录 [ ^ ],

特殊文件夹,工作目录:如何找到我的程序目录 [ ^ ]。



-SA
One of the most typical reasons is the protection of the file system.

People often use some illegal file path names. Strictly speaking, such applications are incorrect in first place, but XP is tolerant to such mistakes, but Windows 7 is strict.

You can of cause recommend the users to provide proper access rights for the directories you use, and everything will work, but this is not a solution. Basically, there are no situations where any hard-coded file path can be useful. You need to calculate those paths based on system configuration or application location. I provided full information in my past answers:

Entry assembly: How to find my programs directory[^],
"special folders", working directories: How to find my programs directory[^].

—SA


这篇关于exe文件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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