Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

citanje iz registry-a

[es] :: Pascal / Delphi / Kylix :: citanje iz registry-a

[ Pregleda: 1550 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Bojann
Zrenjanin

Član broj: 13255
Poruke: 211
*.dialup.neobee.net.



Profil

icon citanje iz registry-a06.04.2005. u 16:52

Zelim da procitam podatke iz registry baze. Ja ukucam ovaj kod i on mi prijavi poruku koja je prazna:
Code:

var
Reg : TRegistry;
KeyGood : Boolean;
compan:string;

begin
 Reg := TRegistry.Create;
try

Reg.OpenKey('My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\photoshop\7.0\Registration', TRUE);
compan := Reg.ReadString('NAME');
showmessage(compan);

finally
Reg.Free;

end;

Gde je tu greska i zasto mi ne procita podatke iz registry-a?
06.04.2005. u 16:52 

Srki_82
Srdjan Tot
Me @ My Home
Ljubljana

Član broj: 28226
Poruke: 1402
82.208.201.*

ICQ: 246436949


Profil

icon Re: citanje iz registry-a06.04.2005. u 17:23
Probaj
Code:
var
  Reg : TRegistry;
  KeyGood : Boolean;
  compan:string;

begin
  Reg := TRegistry.Create(KEY_READ);
  try
    Registry.RootKey = HKEY_LOCAL_MACHINE;
    Reg.OpenKey('SOFTWARE\Adobe\photoshop\7.0\Registration', False);
    compan := Reg.ReadString('NAME');
    showmessage(compan);
  finally
    Reg.Free;
end;

Pisem iz glave, ali bi trebalo da radi.
DirectX na srpskom | GLScene na srpskom

There are only 10 types of people in this world; those who understand binary and those who don't.
06.04.2005. u 17:23 

[es] :: Pascal / Delphi / Kylix :: citanje iz registry-a

[ Pregleda: 1550 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.