Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Use TRegistry to read external .REG file, possible?

Posted on 1997-06-01
1
Medium Priority
?
270 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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 this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

704 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