Member Controls

Developers > Registry class
pljonesLink to postposted: Mon Jun 27, 2005 4:41 pm

Member since:
 2005-04-02
Posts:
 616
In SimPe Helper\Registry.cs, the class "Registry" is declared "public". However, the constructor is declared "internal". Should third party plugins be using the Registry class?

(I've just started working on the OBJD wrapper and the "Get GUID" call uses a call to Registry().)
EmilyLink to postposted: Mon Jun 27, 2005 8:25 pm

Member since:
 2006-04-17
Posts:
 361
Yes.
SimPe creates a Global Instance of this class (SimPe.Helper.WindowsRegistry).

The Registry class then contains a Property to acces a Special key for ExternalTools and Plugins (SimPe.Helper.WindowsRegistry.PluginRegistryKey). Use that Property to create your own Registry SubKey and Values.

Btw. Since the current QA Release, SimPe is not writing directly to the windows Registry anymore, but stores the Values in the Data\simpe.xreg File. This was done to make it a bit more Platform independent!
quaxiLink to postposted: Mon Jun 27, 2005 8:42 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
Be carefull when playing/testing with get GUID!

As it is linked to the real GUID Database ;)
pljonesLink to postposted: Mon Jun 27, 2005 9:14 pm

Member since:
 2005-04-02
Posts:
 616
"quaxi" wrote:
Be carefull when playing/testing with get GUID!


At the moment, I've removed the button. When the registry class is working, I'll re-instate the code.


viewthread, 0, 0, Registry-class