Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a .h file and include in the program:
Message
 
 
À
29/01/2004 14:30:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00871966
Message ID:
00871970
Vues:
11
There's already registry.h header file with all required constants in the VFP FFC subdirectory.

>Can you please tell me i need to create a .h file and include the following code into the file - including create("registry")
>I want to access the registry to read a key value.
>Please let me know how i cxan call that .h file into my application's form where i want to read the key value:
>
>******************************************************************
>*** The following should be placed into a .H file and included
>*** in any program that uses the Registry class.
>
>#DEFINE MAX_INI_BUFFERSIZE 256
>#DEFINE MAX_INI_ENUM_BUFFERSIZE 16000
>
>*** Registry roots - You'll likely need these values in your programs
>*** so add them to FOXPRO.H or to each program that
>*** uses them.
>#DEFINE HKEY_CLASSES_ROOT -2147483648 && (( HKEY ) 0x80000000 )
>#DEFINE HKEY_CURRENT_USER -2147483647 && (( HKEY ) 0x80000001 )
>#DEFINE HKEY_LOCAL_MACHINE -2147483646 && (( HKEY ) 0x80000002 )
>#DEFINE HKEY_USERS -2147483645 && (( HKEY ) 0x80000003 )
>
>*** Success Flag
>#DEFINE ERROR_SUCCESS 0
>
>*** Registry Value types
>#DEFINE REG_NONE 0 && Undefined Type (default)
>#DEFINE REG_SZ 1 && Regular Null Terminated String
>#DEFINE REG_BINARY 3 && ??? (unimplemented)
>#DEFINE REG_DWORD 4 && Long Integer value
>#DEFINE MULTI_SZ 7 && Multiple Null Term Strings (not implemented)
>
>*** END #DEFINEs - .H
>
>
>*** Enumeration
>clear
>oRegistry=CREATE("Registry")
>***********************************************
>Thank you very much.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform