Win32应用程序无法在Vista中工作 [英] win32 application is not working in vista

查看:163
本文介绍了Win32应用程序无法在Vista中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在WIN-XP平台上使用VS2005在win32中开发了一个应用程序.该应用程序可以在WIN-XP中正常运行,但不能在VISTA中运行. vista不允许我的应用程序在程序文件(x86)中创建某些文件.如果我禁用UAC,则其工作正常.我从互联网上获得了一些信息,并且还添加了清单文件,但仍然无法正常运行.

请建议我如何在我的应用程序中解决此问题.
我不希望最终用户禁用UAC来使用我的应用程序.

非常感谢您的任何帮助.

谢谢.

Hi All,

i developed an application in win32 with VS2005 on WIN-XP platform. this application is working as expected in WIN-XP but not working in VISTA. vista is not allowing my application to create some files in program file(x86). if i disable the UAC then its working fine. i got some information from internet and i added a manifest file also, but still its not working.

please suggest me how can i fix this issue in my application.
i don''t want end user to disable UAC for using my application.

any help is very much appreciated.

Thank You.

推荐答案

您应该改用 Application Data 目录.您可以在此处执行任何操作.
You should use the Application Data directory instead. You can do whatever you want there.


通常,"Program Files"文件夹中为只读,没有任何管理程序.尝试阅读此链接适用于Windows Vista的新UAC技术 [
In general, there is read-only in "Program Files" folder for no admin programs. Try read this link New UAC Technologies for Windows Vista[^]

Best way is to use ProgramData for data which often change. You can have a manifest file that tells Windows Vista it requires administrator rights.


这篇关于Win32应用程序无法在Vista中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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