ImageEn, unit iexRegistryFunctions |
|
TIEGlobalSettingsHelper.SaveSerialToRegistry
Declaration
function SaveSerialToRegistry(const sUserEmail, sUserSerial: String; const sKey: string = 'Software\ImageEn\IEVision'; aHKEY: HKEY = HKEY_CURRENT_USER): Boolean;
Description
Save the
IEVision serial number to the registry so it can be loaded easily using
LoadSerialFromRegistry.
Note:
◼SaveSerialToRegistry is a helper method. You will need to add iexRegistryFunctions to your uses clause to access the method
◼SaveSerialToRegistry should be used in tandem with
LoadSerialFromRegistryuses
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
◼LoadSerialFromRegistry◼RegisterPlugIns