Duvida não muito simples sobre Registro
bom pessoal,
estou querendo acessar uma chave do registro, bem simples.
uses
SysUtils, Registry, Dialogs;
var Registro: TRegistry;
begin
Registro := TRegistry.Create;
Registry.RootKey := HKEY_LOCAL_MACHINE
end;
Nesta linha de comando ´Registry.RootKey := HKEY_LOCAL_MACHINE´ quando eu tento rodar o programa ele dá a seguinte Mensagem de erro ´Undeclared identifier ´HKEY_LOCAL_MACHINE´
Qualquer ajuda é bem vida...
Lucas!
estou querendo acessar uma chave do registro, bem simples.
uses
SysUtils, Registry, Dialogs;
var Registro: TRegistry;
begin
Registro := TRegistry.Create;
Registry.RootKey := HKEY_LOCAL_MACHINE
end;
Nesta linha de comando ´Registry.RootKey := HKEY_LOCAL_MACHINE´ quando eu tento rodar o programa ele dá a seguinte Mensagem de erro ´Undeclared identifier ´HKEY_LOCAL_MACHINE´
Qualquer ajuda é bem vida...
Lucas!
Lucas Silva
Curtidas 0
Melhor post
Lucas Silva
03/12/2003
Muito obrigado nildo...
com o ´Registro.RootKey := DWORD($80000002);´ deu certo.....
com o ´Registro.RootKey := DWORD($80000002);´ deu certo.....
GOSTEI 1
Mais Respostas
Lucas Silva
03/12/2003
corrigindo....
uses
SysUtils, Registry, Dialogs;
var Registro: TRegistry;
begin
Registro := TRegistry.Create;
Registro.RootKey := HKEY_LOCAL_MACHINE
end;
Nesta linha de comando ´Registro.RootKey := HKEY_LOCAL_MACHINE´ quando eu tento rodar o programa ele dá a seguinte Mensagem de erro ´Undeclared identifier ´HKEY_LOCAL_MACHINE´
mesmo assim não dá certo!
uses
SysUtils, Registry, Dialogs;
var Registro: TRegistry;
begin
Registro := TRegistry.Create;
Registro.RootKey := HKEY_LOCAL_MACHINE
end;
Nesta linha de comando ´Registro.RootKey := HKEY_LOCAL_MACHINE´ quando eu tento rodar o programa ele dá a seguinte Mensagem de erro ´Undeclared identifier ´HKEY_LOCAL_MACHINE´
mesmo assim não dá certo!
GOSTEI 0
Nildo
03/12/2003
Ao invez de
Registry.RootKey
use
Registro.RootKey := HKEY_LOCAL_MACHINE
Mesmo assim se der erro use:
Registro.RootKey := DWORD($80000002);
Registry.RootKey
use
Registro.RootKey := HKEY_LOCAL_MACHINE
Mesmo assim se der erro use:
Registro.RootKey := DWORD($80000002);
GOSTEI 0
Nildo
03/12/2003
Ou voce pdoe usar o proprio
Registro.RootKey := HKEY_LOCAL_MACHINE
mas você tem que adicionar Windows à uses
Registro.RootKey := HKEY_LOCAL_MACHINE
mas você tem que adicionar Windows à uses
GOSTEI 0