What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Saveing in C++

Saveing in C++
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Saveing in C++
To store data there are roughly two methods.

One method is to use the registry:
Benefits:
  + no extra file needed
Disadvantages:
  + Can't be easy exported/imported or changed by newbies
  + There are certain (unwritten) rules you must follow; you can't go storing data for your application wherever you like.
  + More and more the registry will get messed up with leftovers from bad written programs (also, the bigger the registry, the slower your PC will start up!)

Another method is to use a file:
Benefits:
  + You can write your own data storage format as you like (binary/textual/whatever).
  + You could use the known INI format to store data
  + Easy exported/imported/changed
  + The user can be certain that whenever he moves/deletes the application, all data and files are moved/deleted with it
Disadvantages:
  + an extra file could be needed (the file to store the data in)*

If you want to stick to an INI-file:
http://www.functionx.com/bcb/howto/inifile.htm
http://www.codeguru.com/Cpp/W-P/files/inifiles/article.php/c4455/

Although many people could say INI-files is something from the past, they are still much prefered and used by many others because of their easyness to create and handle (both by the programmer as by the user); you _know_ what the application changes, etc... Personally I also hate it when I'm never certain of what an application stores/changes what and where in the registry (Also, often things get left in the registry because of errors, etc. making it one big mess).

* PS: why I said "could be needed"? Because you could write a storage system where the actual exe-file is used as a storage file (eg: resources or other data added to the actual file). Of course in that case, the easnyess of using an extra textbased file will be gone.

This post was edited on 01-03-2005 at 03:03 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-03-2005 02:58 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Saveing in C++ - by DJeX on 01-02-2005 at 09:34 PM
RE: Saveing in C++ - by RaceProUK on 01-02-2005 at 10:18 PM
RE: Saveing in C++ - by DJeX on 01-02-2005 at 10:59 PM
RE: Saveing in C++ - by Choli on 01-02-2005 at 11:08 PM
RE: Saveing in C++ - by DJeX on 01-03-2005 at 01:58 AM
RE: Saveing in C++ - by CookieRevised on 01-03-2005 at 02:58 AM
RE: Saveing in C++ - by Choli on 01-03-2005 at 08:51 PM
RE: Saveing in C++ - by DJeX on 01-03-2005 at 09:37 PM
RE: Saveing in C++ - by TheBlasphemer on 01-03-2005 at 09:51 PM
RE: Saveing in C++ - by DJeX on 01-03-2005 at 10:26 PM
RE: Saveing in C++ - by Choli on 01-03-2005 at 10:27 PM
RE: Saveing in C++ - by CookieRevised on 01-03-2005 at 11:11 PM
RE: Saveing in C++ - by Choli on 01-03-2005 at 11:39 PM
RE: Saveing in C++ - by DJeX on 01-04-2005 at 01:07 AM
RE: Saveing in C++ - by RaceProUK on 01-04-2005 at 05:56 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On