小编Sam*_*vis的帖子

无法使用delphi读取win注册表 - firebird密钥

我不明白.我想检查firebird服务器的窗口注册表项是否存在.密钥存在但函数返回false.怎么了?我正在使用Windows 7 64x和delphi 2010.

韩国社交协会.戴维斯.

procedure x;
  var
    reg:TRegistry;
begin

  reg := TRegistry.Create;
  reg.RootKey := HKEY_LOCAL_MACHINE;

  if reg.OpenKey('\SOFTWARE\Firebird Project\Firebird Server\Instances',false)=true then
  begin
    ShowMessage('Key exists');
  end;

end;
Run Code Online (Sandbox Code Playgroud)

delphi registry firebird key

4
推荐指数
1
解决办法
3082
查看次数

标签 统计

delphi ×1

firebird ×1

key ×1

registry ×1