遇到一个奇怪的问题,关于TRegistry。
看一下我的代码:
var
SG_Reg:TRegistry;
....
begin
....
SG_Reg:=TRegistry.Create;
SG_Reg.RootKey:=HKEY_LOCAL_MACHINE;
if (SG_Reg.OpenKey('software\Infinity Medical Soft\IAS 3.0',false)) then
begin
SG_Path := SG_Reg.ReadString('InstallPath');
end;
.....
编译的时候,报错:HKEY_LOCAL_MACHINE 不认识的标示符.
我已经uses 了Registry.
ps.我用的是delphi6.