Solved

file with Registrystyle

Posted on 1997-08-24
4
137 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now