Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegSetValueEx
Message
De
10/09/1998 21:42:02
 
 
À
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:
00135342
Vues:
10
Take a look at the Registry class (by Rick Strahl) form the Files section. I believe it does what you want.

Vlad

>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?
>
>Regards,
>Mike Timpe
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform