
RegisterODBPP
ODBPPLib.IODBPP.RegisterODBPP allows any application to register ObjectDatabase++ and the information is accessible through GetLicenseInformations.ODBPPLib.LicenseInfo RegisterODBPP ( string registeredName, ulong code1, ulong code2 );
Parameters
registeredName | the registered name from registration certificate. |
code1 | code 1 from registration certificate. |
code2 | code 2 from registration certificate. |
Return Values
GetLicenseInformation returns the LicenseInfo with the list of all current license details.Remarks
- ObjectDatabase++ will store these values so this function only needs to be called once by one application.
Example Use
- C#
private void button1_Click(object sender, EventArgs e){ try { ODBPPLib.ODBPP odbpp = new ODBPPLib.ODBPP(); ODBPPLib.LicenseInfo info = odbpp.RegisterODBPP( "Your Registration Name",0x1234567890123456, 0x1234567890123456); if(info.registeredName != null) MessageBox.Show( "ObjectDatabase++ is currently registered to:-\n" + info.registeredName + ".\nFor "+info.installations + " installations between the period " + info.start.ToLongDateString() + " and " + info.finish.ToLongDateString()); else MessageBox.Show( "ObjectDatabase++ is in developer registartion" + " mode between the period " + info.start.ToLongDateString() + " and " + info.finish.ToLongDateString()); } catch (Exception e1) { MessageBox.Show(e1.Message); } }
Also See
GetLicenseInformationListen All
Comments (0)