[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Read Registry With D1

Posted on 1997-10-14
2
Medium Priority
?
198 Views
Last Modified: 2010-04-04
Reading the registry is simple with Delphi 3.  How do I do
this with Delphi 1?
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 Comments
 

Accepted Solution

by:
AllenC earned 200 total points
ID: 1347592
You can find it in the Win 3.x API help file.

RegCreateKey      Creates a specified key
RegDeleteKey      Deletes a specified key
RegEnumKey      Enumerates the subkeys of a specified key
RegOpenKey      Opens a specified key
RegQueryValue      Retrieves the text string for a specified key
RegSetValue      Associates a text string with a specified key

function RegSetValue(Key: HKey; SubKey: PChar; ValType: Longint; Value: PChar; cb: Longint): Longint;
Remember to include the ShellAPI unit!

Here's an example:
uses ShellAPI;

begin
  if RegSetValue(HKEY_CLASSES_ROOT, '.wav\(Default)', REG_SZ, 'SoundRec', SizeOf('SoundRec')) <> ERROR_SUCCESS then Error;
end.

Good Luck

http://tcp.home.ml.org/
0
 

Author Comment

by:jexd99
ID: 1347593
Thanks Allen! :)

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

649 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