Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. save options using registry or file?

save options using registry or file?

Scheduled Pinned Locked Moved C / C++ / MFC
questionwindows-admintestingbeta-testinghelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammad Tarik
    wrote on last edited by
    #1

    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

    R R M T 4 Replies Last reply
    0
    • M Mohammad 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

      R Offline
      R Offline
      rocky_pulley
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M Mohammad 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

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • M Mohammad 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

          M Offline
          M Offline
          Mohammad Tarik
          wrote on last edited by
          #4

          Two votes for files... Thanks for your suggestions M Tarik

          1 Reply Last reply
          0
          • M Mohammad 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

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            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 of HKEY_CURRENT_USER ,even Guest account has Write Priviledge).


            "I Think this Will Help" [Vote One Here,.....]

            visit me at http://www.thisisalok.tk
            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups