Re: Registry problems...

From: Benny (benny_at_boeskovdata.dk)
Date: 03/17/05


Date: Thu, 17 Mar 2005 17:26:39 +0100

Tom de Neef wrote:
> "Benny" <benny@boeskovdata.dk> schreef in bericht
> news:q_9_d.14$Ka6.2@news.get2net.dk...
>
>>Hi'
>>
>>Could someone please tell me whats wrong with this code.
>>
>>-----------------
>>var
>> saveReg: Tregistry;
>>begin
>> SaveReg.RootKey:=HKEY_CURRENT_USER;
>> if SaveReg.SaveKey('\Console','TestRegFile.tst') then begin
>> SaveReg.CloseKey;
>> showmessage('Done');
>> end; //if
>>----------------
>>
>
>
> I would start with saveReg:=Tregistry.create;
> Tom
>
>
Ups, Sorry - New code. But it's still not working. I'm getting an empty
file in my application dir called 'TestFileReg.tst...Please help...

var
    s: TRegistry;
begin
       S:=Tregistry.Create;
       S.RootKey:=HKEY_CURRENT_USER;
   if S.SaveKey('\Software\Microsoft\Internet Account
Manager\Accounts\00000001','TestRegFile.tst') then
       begin;
       showmessage('Done');
       end;
       S.Free;
end;



Relevant Pages

  • Re: Killing the Goose that......
    ... Not been on here for a few years, whats a Togger? ... <Tom & Jerry mode> ...
    (uk.people.consumers.ebay)
  • RE: pc crashes
    ... Then select safe-mode with networking,enter as administrator,then open ... control panel,Admin.,open event viewer,see whats taking place. ... "Tom" wrote: ...
    (microsoft.public.windowsxp.newusers)
  • Re: 17 foot mahogany barrelback runabout just finished
    ... Tom in Oregon ... Whats the 'on plane' run time? ...
    (rec.boats.building)
  • Re: why not a new Hummer?
    ... the "narcing out my buddies" hillbilly from the chicken city ... Tom, say it ain't so... ... Damn whats this world coming too. ...
    (rec.motorcycles.harley)
  • Re: 16" gun
    ... Whats the 'target'? ... Sky? ... Tom ...
    (rec.crafts.metalworking)