Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the root registry key for the framework
Message
From
12/11/2001 19:06:43
 
 
To
12/11/2001 17:03:45
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00580644
Message ID:
00580673
Views:
22
>I went about to change where the framework looks for registry keys. The default is HKEY_CURRENT_USER. I tried changing the application property “cregistrykey” to HKEY_LOCAL_MACHINE. That didn’t seem to work. So I put in -2147483646. That didn’t work either. I found the code in cregistry.init() that sets the mainkey. If tnMainKey is not passed in, it defaults to HKEY_CURRENT_USER. I changed that and it fixed part of my problem. But the preference form is still storing it’s values to HKEY_CURRENT_USER. Anyone know where the code that the preference form uses to pass tnMainKey into cRegistry.init() ?

Take a look at the cPreference class of the cuserpref.vcx. It uses an assign method to call the application object's setsetting method. This may help point you in the right direction.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform