Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegSetValueEx
Message
 
À
10/09/1998 13:04:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00135140
Message ID:
00135158
Vues:
11
>I'm trying to modify Registry.prg to allow writing a Registry entry as a number. I need to modify a parameter that is used by a 3rd party Communication program and I don't have any other options.
>
> changed the declaration for RegSetValueEx for the data parameter from String to Integer. I can successfully "write" to the registry, but when I use RegEdit to look at the value written, I get an "Invalid DWORD value" message. I've tried sending an 0x1 to write the value as a hex, but RegEdit shows me that it came through as 01 not 0x00000001(1). I've looked at the declaration in the Win32API.txt file and the data parameter type is defined "any".
>
>Is it possible that VFP can't write numeric values to the Registry? Any suggestions?
>
Hi Mike,

Do I read the above correctly? That you passed REG_DWORD as the type parameter and passed the value by reference?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform