ImageEn, unit iexRegistryFunctions |
|
TIEGlobalSettingsHelper.LoadSerialFromRegistry
Declaration
function LoadSerialFromRegistry(const sKey: string = 'Software\ImageEn\IEVision'; aHKEY: HKEY = HKEY_CURRENT_USER): Boolean;
Description
Loads the
IEVision serial number from the registry (which was saved using
SaveSerialToRegistry).
Note:
◼LoadSerialFromRegistry is a helper method. You will need to add iexRegistryFunctions to your uses clause to access the method
◼LoadSerialFromRegistry should be used in tandem with
SaveSerialToRegistry
uses
iexRegistryFunctions;
...
// Save serial number to the registry
IEGlobalSettings().SaveSerialToRegistry( 'me@mycompany.com', 'ieviz-12345-12345' );
procedure TMainForm.FormCreate(Sender: TObject);
begin
// Register the plug-in
IEGlobalSettings().LoadSerialFromRegistry('Software\MyCompany\MySoftware');
IEGlobalSettings().RegisterPlugIns( [iepiIEVision] );
end;
See Also
◼SaveSerialToRegistry
◼RegisterPlugIns