Solved

Read Registry With D1

Posted on 1997-10-14
2
192 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
2 Comments
 

Accepted Solution

by:
AllenC earned 50 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 87
delphi parse string to params 3 122
Delphi inherited method 6 70
Base1 Encode/Decode 3 77
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

773 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