Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegSetValueEx
Message
From
10/09/1998 21:42:02
 
 
To
10/09/1998 13:04:30
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00135140
Message ID:
00135342
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform