Thread: Save data

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    26

    Save data

    All,
    I am planning to write a MFC program that is dialog based which will be used to gather user input. From that, I want to run some benchmarking tests which could lead to the rebooting and even simulating power downs of the system.

    So my question is this, how can I keep the variables that the user has entered in the dialog for reference? Ultimatly, I would like to clear the variables from the dialog at the push of a button, not anytime prior.

    Appreciate the help and please, keep it short. I hate to take away time from your other activities.

  2. #2
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    explain what you need help with...

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Create a structure containing the data you need. Either pass this as a reference to the dialog (so that it stores the input in that specific structure), or have a call to return an instance of the structure when the dialog closes (say, in a close event handler, store the structure in a list of other such structures). If you need to keep it around through a reboot, then just save it to disk.

    Hope that helps.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    26
    Thanks Zach L.

    Something I'll look at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to save data to a file using FILES in C
    By yufa333 in forum C Programming
    Replies: 1
    Last Post: 03-15-2009, 01:26 AM
  2. Replies: 11
    Last Post: 04-17-2008, 02:29 AM
  3. Reading a file with Courier New characters
    By Noam in forum C Programming
    Replies: 3
    Last Post: 07-07-2006, 09:29 AM
  4. How To Save Dynamic Data
    By GaPe in forum C Programming
    Replies: 1
    Last Post: 11-25-2003, 10:41 AM
  5. C Programming Question
    By TK in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 07-04-2002, 07:11 PM