Save last dialog confiuguration MFC
-
Hey guys, I have a dialog based application. I want to save the last configuration of the that application. For example if I have a # of selected countries field set to 7 in last configuration, then next time if I open it, it should be saved. Thanks in advace Appreciate it C++Prog
-
Hey guys, I have a dialog based application. I want to save the last configuration of the that application. For example if I have a # of selected countries field set to 7 in last configuration, then next time if I open it, it should be saved. Thanks in advace Appreciate it C++Prog
-
Thanks...Appreciate your help C++Prog
-
Thanks...Appreciate your help C++Prog
I would recommend against using the registry for a couple reasons: 1) It is a very old technology that is being phased out (slowly, but surely) 2) It is far more complicated than what you need anyway. A simple solution is to write out a text file in some format (XML is nice for this) that you check for when your app starts. If the file exists, it loads the settings; if not, it uses a default configuration. Additionally, you can configure the file to exist anywhere you like (though, if you want to cooperate properly with Windows XP, you should put it in the users Document and Settings directory). If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac
-
Hey guys, I have a dialog based application. I want to save the last configuration of the that application. For example if I have a # of selected countries field set to 7 in last configuration, then next time if I open it, it should be saved. Thanks in advace Appreciate it C++Prog
Preeti9 wrote:
I have a dialog based application. I want to save the last configuration of the that application. For example if I have a # of selected countries field set to 7 in last configuration, then next time if I open it, it should be saved.
You may profile the data into .ini file for the application.... :) Knock out 't' from can't, You can if you think you can :cool: