Hi

Hi
I have Create Following code to Read Registry Which Crated to
Database Connection String;

i did following code Under "Data Module Create Event"

var
Registry: TRegistry;
KeyName:string;
ConnString:string;
begin
Registry := TRegistry.Create(KEY_READ);
KeyName:= '3RS SOFTWARE\3RS Fama\SubKey';
try
Registry.RootKey := HKEY_CURRENT_USER;
Registry.OpenKey(KeyName, False);
ConnString := Registry.ReadString('CON');
finally
Registry.Free;
end;
end;

But i am getting following error, could some tell me why ?

[dcc32 Error] DataU.pas(55): E2003 Undeclared identifier: 'KEY_READ'
[dcc32 Error] DataU.pas(58): E2003 Undeclared identifier: 'HKEY_CURRENT_USER'

Comments

Post a Comment