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

registeredNamethe registered name from registration certificate.
code1code 1 from registration certificate.
code2code 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

GetLicenseInformation
Comments (0)Listen All
Characters left: 2500
 
Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript