Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting error Variable HKEY_LOCAL_MACHINE not found
Message
De
29/01/2004 17:52:12
 
 
À
29/01/2004 17:29:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00872099
Message ID:
00872109
Vues:
18
Raj;

>I have included the Registry.PRG that is included into VFP package into my program: to access the registrykey
>This is the following code i am using: i am getting the error at the HKEY_LOCAL_MACHINE
>********************************************************************
I am not so sure for function ReadRegistryString. But generally, you can try:
* try this
#DEFINE HKEY_LOCAL_MACHINE 2147483650   && HKEY=0x80000002
* or this
HKEY_LOCAL_MACHINE                = "HKEY_LOCAL_MACHINE"

SET PROCEDURE to "programs\registry.prg"

clear
oRegistry=CREATE("Registry")

*** Now Read the value for key sessionfinished

? oRegistry.ReadRegistryString(HKEY_LOCAL_MACHINE,;
                               "SOFTWARE\JUNGCLAUS SOFTWARE ENGINEERING\TWAINCommander",;
                               "SessionFinished")
********************************************************************
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform