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 last dialog confiuguration MFC

Save last dialog confiuguration MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialworkspace
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.
  • C Offline
    C Offline
    celllllllll
    wrote on last edited by
    #1

    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

    H L 2 Replies Last reply
    0
    • C celllllllll

      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

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      You can use from registry and See Here[^] maybe it is some helpful to you_**


      **_

      whitesky


      C 1 Reply Last reply
      0
      • H Hamid Taebi

        You can use from registry and See Here[^] maybe it is some helpful to you_**


        **_

        whitesky


        C Offline
        C Offline
        celllllllll
        wrote on last edited by
        #3

        Thanks...Appreciate your help C++Prog

        Z 1 Reply Last reply
        0
        • C celllllllll

          Thanks...Appreciate your help C++Prog

          Z Offline
          Z Offline
          Zac Howland
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • C celllllllll

            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

            L Offline
            L Offline
            Laxman Auti
            wrote on last edited by
            #5

            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:

            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