多用户环境 [英] Multiuser environment
本文介绍了多用户环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我们有一个用VC6编写的旧源代码.程序设置存储在.INI文件中. (c:\ program files \ myapp \ myapp.ini)
在单用户环境(管理员权限用户)中运行没有问题.但是它在XP中的多用户(受限用户)中失败.编写个人资料会导致失败.
如何解决这个问题?
最好的问候,
Peter
Hi All,
We have an old source code written in VC6. Program setting are stored in a .INI file. (c:\program files\myapp\myapp.ini)
There is no problem running in single user environment (admin-right user). But it fail in multiuser (restricted user) in XP. Writing private profile cause a fail.
How to solve this problem ?
Best Regards,
Peter
推荐答案
将INI文件的副本放入用户的APPDATA文件夹中.
文件夹路径可以通过APPDATA环境变量获取.
(请参见 GetEnvironmentVariable [
Place copies of the INI file into the user''s APPDATA folder.
The folder path can be obtained by the APPDATA environment variable.
(See GetEnvironmentVariable[^]
这篇关于多用户环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文