registry

registry

Postby Silvio » Mon Sep 29, 2008 8:19 am

to save a variable on registry I made

Code: Select all  Expand view

Key:="Software\Microsoft\Windows\CurrentVersion\Policies\System"
Name:="NoDispCPL"
valore:=1
oReg := TReg32():New(HKEY_CURRENT_USER, Key)
oReg:Set(Name,valore)



and this is ok but on a pc have windowx xp it not found the key

System but only Explorer key(Key:="Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")

How I can make to create the new key ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: registry

Postby Enrico Maria Giordano » Mon Sep 29, 2008 9:44 am

Try Create() method.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Silvio » Mon Sep 29, 2008 11:56 am

How I must make to see if this key there is ...
because when I create

Code: Select all  Expand view
Key:="Software\Microsoft\Windows\CurrentVersion\Policies\System"
Name:="NoDispCPL"
valore:=1
oReg := TReg32():New(HKEY_CURRENT_USER, Key)
oReg:Set(Name,valore)


it not send me any errors
but system not was into
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests