Thread: Backup - Registry & File :: MFC

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348

    Backup - Registry & File :: MFC

    Hi.

    I am in the process of implementing a feature for a program that involves saving and restoring expendable data. For example, let say the program organizes a list of names. I would like to save the names when the program closes and load the names when the program starts.

    What is the maximum data size that a program can save and restore via registry?

    I find saving and restoring data via registry is quicker and easier than saving the data to a file and reading the data back into memory.

    Thanks,
    Kuphryn

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    That could lead to some problems with windows. I know the registry has a default size and when it becomes too small, it asks the user to increase the size. Hence, you continually adding to it will make the user have to increase it. That is something I would not want the inexperienced user to do.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Thanks.

    I will implement a separate database file and not use the registry. I think going with a file is safer and more flexible in the long run.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  2. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 10:47 AM
  3. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  4. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  5. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM