Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get key .
Message
De
26/11/1999 08:21:55
 
 
À
25/11/1999 13:39:12
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00295607
Message ID:
00295683
Vues:
21
If you use the FFC registry class this example may help you understand. Make sure you include the registry.h file in your form so HKEY_LOCAL_MACHINE is defined.
LOCAL cOptName, cOptVal, cKeyPath, nUserKey, lCreateKey

WITH ThisForm
cOptName = "DataPath"
cOptVal = SPACE(256)
cKeyPath = "Software\MickeyMouse\"
nUserKey = HKEY_LOCAL_MACHINE

* Get the registry value from the key
.Registry.GetRegKey(cOptName, @cOptVal, cKeyPath, nUserKey)
.txtCurrentPath.Value = cOptVal

ENDWITH
>Hi ,
> If I want to get a path from registry ,which API I should use and what the syntax is ?
> Thanx a lot !
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform