• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

How to savesetting in a textfile and gain these Savesettings again.

How to savesetting in a textfile and gain these Savesettings again.
and also tell me can i save all form setting in the registry in one line ornot please tell me
0
zubair007
Asked:
zubair007
  • 2
1 Solution
 
fl0ydCommented:
Yes, you can save all settings in one registry key, if you make it binary. I wouldn't recommend it though, since you are running into major trouble if you move on to your next program version that has an incompatible layout for storing data.

Although Microsoft encourages the use of the registry to store program information, using .ini files has advantages. Information can be found here: http://msdn.microsoft.com/library/en-us/sysinfo/base/registry_functions.asp . Have a look at the 16bit-windows compatibility functions GetPrivateProfile* and WritePrivateProfile*

.f
0
 
CleanupPingCommented:
zubair007:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
fl0ydCommented:
I believe my comment answered all questions.

.f
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now