Thread: Save your settings ?

  1. #1
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80

    Save your settings ?

    Guys, how can i save the settings and bring it back into work the next time the user opens the program ? Any tutorials on that ? kinda like "Saving your Game Progress"
    /* Have a nice day */

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    well you could use .ini files or maybe create and write to HKLM/Software/yourname in the registry.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Chief Code Coloniser!
    Join Date
    Apr 2005
    Posts
    121
    Just write them to file or the registry, and then load them up again when your app starts up.

  4. #4
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    How do i go over doing it ? any tutorials available ?
    /* Have a nice day */

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Reading the faq should get you started:

    How do I...work with files (c).
    How do I...work with files (c++).

    If you prefer a winapi approach then check out msdn:file management functions.

    For the registry - msdn: registry.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  6. #6
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    Ken, Stoner asked said to write to registry or .ini files, is there a reason why .ini files instead of .txt files ?
    /* Have a nice day */

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting the matrix question..
    By transgalactic2 in forum C Programming
    Replies: 47
    Last Post: 12-22-2008, 03:17 PM
  2. Save vs Save As.... OPENFILENAME flags
    By csonx_p in forum Windows Programming
    Replies: 16
    Last Post: 06-01-2008, 02:42 PM
  3. save webpage? some save some not
    By kryptkat in forum Tech Board
    Replies: 3
    Last Post: 06-07-2005, 09:21 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Major glitch losing source files with MSVC++ and WinXP
    By JasonD in forum C++ Programming
    Replies: 10
    Last Post: 08-14-2003, 12:15 PM