Ver Mensaje Individual
  #2  
Antiguo 29-12-2007
Avatar de Héctor Randolph
[Héctor Randolph] Héctor Randolph is offline
Miembro Premium
 
Registrado: dic 2004
Posts: 882
Reputación: 20
Héctor Randolph Va por buen camino
Hola ascrnet

El problema es que estás intentando acceder a los métodos de la clase, sin antes haber creado una instancia.

Solamente añade el constructor y al final el método Free para destruirlo

Código Delphi [-]
var
reg: TRegistry;
begin
     reg:=TRegistry.Create;
     reg.RootKey := HKEY_CURRENT_USER;
     if reg.OpenKey('Software\Atari800WinPLus',true) then
     begin
      ShowMessage('lo encontro'+ reg.ReadString('fileRomXLXE'));
     end;
     reg.CloseKey;
     reg.Free;
end;

Saludos
Responder Con Cita