Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting error Variable HKEY_LOCAL_MACHINE not found
Message
From
29/01/2004 17:52:12
 
 
To
29/01/2004 17:29:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00872099
Message ID:
00872109
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform