save options using registry or file?
-
This is not a question about some error that I may have. I am asking for your advice since this is the first (somewhat big) application for me. Where would you save the options of a program ( like directories, and many other stuff),...in the registry...or using an options files. And what is the best practice of those during, first the testing period (I have to give samples to my friends), and second after everything is done. Thanks
-
This is not a question about some error that I may have. I am asking for your advice since this is the first (somewhat big) application for me. Where would you save the options of a program ( like directories, and many other stuff),...in the registry...or using an options files. And what is the best practice of those during, first the testing period (I have to give samples to my friends), and second after everything is done. Thanks
Using options files is generally easier. Easier to code, and easier for users to modify directly if they need to. The other advantage to using files is that the application will be easier to port to another operating system. Outside of those advantages, the registry is a fine place to store stuff, but don't store too much junk there. If your options file ends up being a few hundred kilobytes, you may want to stick with a file and not clutter up the registry. -- Rocky Dean Pulley
-
This is not a question about some error that I may have. I am asking for your advice since this is the first (somewhat big) application for me. Where would you save the options of a program ( like directories, and many other stuff),...in the registry...or using an options files. And what is the best practice of those during, first the testing period (I have to give samples to my friends), and second after everything is done. Thanks
I would strongly recommend using one or more files. Your users (and testers) will bless you when they move your app between machines. The registry is evil. No, really. :) /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
-
This is not a question about some error that I may have. I am asking for your advice since this is the first (somewhat big) application for me. Where would you save the options of a program ( like directories, and many other stuff),...in the registry...or using an options files. And what is the best practice of those during, first the testing period (I have to give samples to my friends), and second after everything is done. Thanks
Two votes for files... Thanks for your suggestions M Tarik
-
This is not a question about some error that I may have. I am asking for your advice since this is the first (somewhat big) application for me. Where would you save the options of a program ( like directories, and many other stuff),...in the registry...or using an options files. And what is the best practice of those during, first the testing period (I have to give samples to my friends), and second after everything is done. Thanks
I usually Prefer Registry,as at some secure system you don't have write access in your
C:\
(generally wher your program is installed). so to play safe bet i prefer saving my option in Registry (at least even in some part ofHKEY_CURRENT_USER
,evenGuest
account has Write Priviledge).
"I Think this Will Help" [Vote One Here,.....]
visit me at http://www.thisisalok.tk