General information
Category:
The Mere Mortals Framework
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only