Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 18130, Adding to Registry

by Iman Hosseinzadeh Email: iman_hossinzadeh@yahoo.com


Adding Values to Windows Registry
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 1.0 12 downloads
Copyright: Open Source or other


Size: 0 bytes
Updated on Sat, 15 Jun 2002 03:03:18 GMT
Originally uploaded on Sat, 15 Jun 2002 03:02:16 GMT
Description
First You Must Add REGISTRY unit to your unit list.
Then write a Procedure (Also Events like Button_Click and ...) then
add :


(Example)
Procedure AddtoReg;
Var MyReg:tregistry;
Begin
MyReg:=Tregistry.create;
MyReg.rootkey:HKEY_Local_MACHINE;
if MyReg.openkey('SOFTWARE\MyCompany\MyAPP\',true) then
begin
MyReg.writeString('MyAppVer','My Application Version 1.0');
MyReg.Closekey;
MyReg.free;
end
else
Showmessage('Error Writing Registry');
MyReg.free;
application.terminate;
end;

This Proc Add a value to Registry
Enjoy;

Iman Hosseinzadeh
Iman_hossinzadeh@yahoo.com

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04