Solved

Use TRegistry to read external .REG file, possible?

Posted on 1997-06-01
1
265 Views
Last Modified: 2010-04-06
Is it possible to have a registry-like file that I can use to save infomation into, like a person's settings, etc...I'd like to use it for a single storage system, but, TRegistry always defaults to the local computer's registry and I cannot specify an external file.RegEdit allows you to connect to a NetWork registry file so I know it can be done, but how?
0
Comment
Question by:barddzen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
sleach earned 100 total points
ID: 1336712
To Connect to a NetWork registry file, use RegistryConnect.  You can get more info on this function in the delphi help files.

RegistryConnect(const UNCName: string): Boolean;

However, if I understand your needs, TIniFile would probably do a better job for you.  You can use a TIniFile to make custom ini files to save personal settings and the like.
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.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 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