>I am trying to use the Registry Access class found in the VFP Foundation Class and I am having trouble deciphering the syntax. (In particular the GetRegKey method.) Any simple example would greatly be appreciated.
>
>Thank you in advance!
Hi Maria,
The RegGetKey function returns the value of the specified entry in the registry. The parameters are:
The entry (as a string)
The return value. Passed by reference. The value of the entry is placed in this variable.
The path (i.e. "Software\Microsoft\VisualFoxPro\6.0\Options")
The root key. The root key can be one of the constants define in the registry.h include file, and are as follows:
#DEFINE HKEY_CLASSES_ROOT -2147483648
#DEFINE HKEY_CURRENT_USER -2147483647
#DEFINE HKEY_LOCAL_MACHINE -2147483646
#DEFINE HKEY_USERS -2147483645
The value returned by the function itself will indicate success or failure. 0 means the function succeeded, otherwise, it's an error code.
Does this answer your question.
George
Ubi caritas et amor, deus ibi est