Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRotating view Pin
Identity Undisclosed21-Jun-08 17:38
Identity Undisclosed21-Jun-08 17:38 
AnswerRe: Rotating view Pin
Nelek23-Jun-08 13:20
protectorNelek23-Jun-08 13:20 
QuestionWindows GUI in Console Application Pin
ForNow21-Jun-08 17:09
ForNow21-Jun-08 17:09 
AnswerRe: Windows GUI in Console Application Pin
led mike22-Jun-08 15:17
led mike22-Jun-08 15:17 
GeneralRe: Windows GUI in Console Application Pin
ForNow22-Jun-08 15:35
ForNow22-Jun-08 15:35 
GeneralRe: Windows GUI in Console Application Pin
led mike23-Jun-08 5:48
led mike23-Jun-08 5:48 
GeneralRe: Windows GUI in Console Application Pin
ForNow23-Jun-08 12:57
ForNow23-Jun-08 12:57 
QuestionWhere should I store application's shared config file that are the same for all user of windows in VISTA Pin
xanagan66621-Jun-08 17:05
xanagan66621-Jun-08 17:05 
First I have to apologize since this question doesn't really an MFC specific.

I have an old MFC application that store it's configuration info in it's own folder,
since I want configuration info of the app to be the same for all user on the computer
(the configuration file is use for storing the path to current database file that user create/choose).

but in windows VISTA this method doesn't work any more due to data virtualization.


The question is where should I put this file ,
so that it can be access by application running from different user with out
suffer from virtualization effect ?


The method I am come up now is

1.every time user ran an application I check for c:\somefolder\config.xml
if the folder or file doesn't exist(like running application for the first time
or someone accidently delate it),I create them on the fly.

2.since this folder wont be affect by data virtualization ,
the config file can be use by any other user on this computer.

but instead of making my folder in an obivious place like c:\somefolder, Are there
any default location on every windows (2000/xp/vista) that I can create my global
config file (like c:\windows_default_globalinfo\MyAppData\config.xml or some thig like that)?
AnswerRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
Scott Dorman22-Jun-08 1:36
professionalScott Dorman22-Jun-08 1:36 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
xanagan66622-Jun-08 2:04
xanagan66622-Jun-08 2:04 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
Scott Dorman22-Jun-08 2:32
professionalScott Dorman22-Jun-08 2:32 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
xanagan66622-Jun-08 2:45
xanagan66622-Jun-08 2:45 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
Scott Dorman22-Jun-08 3:00
professionalScott Dorman22-Jun-08 3:00 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
xanagan66622-Jun-08 3:18
xanagan66622-Jun-08 3:18 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
Scott Dorman22-Jun-08 3:22
professionalScott Dorman22-Jun-08 3:22 
AnswerRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
krmed22-Jun-08 3:35
krmed22-Jun-08 3:35 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
bob1697222-Jun-08 4:23
bob1697222-Jun-08 4:23 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
krmed23-Jun-08 1:54
krmed23-Jun-08 1:54 
GeneralRe: Where should I store application's shared config file that are the same for all user of windows in VISTA Pin
bob1697223-Jun-08 8:08
bob1697223-Jun-08 8:08 
QuestionMFC update: how to disable loading pane docking state from registry Pin
roel_21-Jun-08 6:28
roel_21-Jun-08 6:28 
AnswerRe: MFC update: how to disable loading pane docking state from registry Pin
bolivar12321-Jun-08 12:01
bolivar12321-Jun-08 12:01 
GeneralRe: MFC update: how to disable loading pane docking state from registry Pin
roel_22-Jun-08 2:02
roel_22-Jun-08 2:02 
QuestionWhat's the difference between function atof() and _tstof()? Pin
liuxianming200121-Jun-08 6:08
liuxianming200121-Jun-08 6:08 
AnswerRe: What's the difference between function atof() and _tstof()? Pin
Ștefan-Mihai MOGA21-Jun-08 6:20
professionalȘtefan-Mihai MOGA21-Jun-08 6:20 
AnswerRe: What's the difference between function atof() and _tstof()? Pin
Dan21-Jun-08 8:08
Dan21-Jun-08 8:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.