私は分かりません。 Firebirdサーバーのウィンドウレジストリキーが存在するかどうかをチェックします。キーは存在しますが、関数はfalseを返します。 どうしたのですか?私はdelphi 2010でWindows 7 64xを使用しています。デルファイを使用してwinレジストリ - ファイアバードキーを読み込めませんでした
Tks。 Davis。
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;
関連 - near duplicate:http://stackoverflow.com/questions/2666807/registry-readstring-method-is-not-working-in-windows-7-in-delphi-7とほぼ正確な重複:http: //stackoverflow.com/questions/7547182/why-does-my-application-work-differently-when-running-as-administrator –