Solved

Read the Registry

Posted on 1997-06-21
3
205 Views
Last Modified: 2010-04-04
I know how to read through dirs, but how do I read the
registry? I use win95 with Delphi 1, and I am curious how
to read a value like hkey_users/mydir1/mydir2/thisval.
I am only interested in reading a value, not changing it.
Any ideas?
              Thanks,
                  jexd99@aol.com
0
Comment
Question by:jexd99
[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
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
sleach earned 20 total points
ID: 1337428
Use TRegistry.  This is Delphi's native support for accessing the registry.
0
 
LVL 1

Expert Comment

by:sleach
ID: 1337429
Additional Note:  Delphi has a help file for TRegistry, but it may be hard to find.  The easiest way to bring it up is to type "TRegistry"  somewhere in the code editor, place your cursor on the word, and press the F1 key.  

For some reason, using the help search index doesn't find the topic on my system.  

0
 

Author Comment

by:jexd99
ID: 1337430
TRegistry doesn't show up in D1 help or if I put it in my
code and press F1 as stated above. Thanks for the response.  I am assuming you are using a different version with
a better "help" index, as I have searched for this and cannot find it. :(

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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