Solved

file with Registrystyle

Posted on 1997-08-24
4
139 Views
Last Modified: 2010-04-06
Hello all,
i want to store data, like in the registry, but in other file. Is there any way to do so ?
Thanks in advance
0
Comment
Question by:PaTrick_Hayder
  • 2
4 Comments
 
LVL 1

Expert Comment

by:arh
ID: 1342320
At first look there is no way. But you can create keys and values that you need in Registry, store them in separate file by RegSaveKey function, and delete them. When you will need to
use this data, load it by RegRestoreKey into registry.
0
 
LVL 14

Expert Comment

by:AvonWyss
ID: 1342321
It may depend on what exactly you want to behave like in the registry. It is possible without too much pain to create object classes that are able to store/restore themselves in/from a file.
0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 150 total points
ID: 1342322
I think so you need file in which you can find key, replace key, etc. Then ini files is good solution for you. In 32bit environment you don't need ini files to store registry values but you can free use them to store you'r own configuration data. You can specify the name of file which can differ in extension from "*.ini" and use as a real ini file.
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1342323
Do you need example or you don't read this ?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi cmd execution 6 67
How to build JSON File in Delphi 6 3 46
Delphi problems to abort a printjob 9 25
Microsoft Access 97 and Delphi XE2 9 58
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question