Incorporating license checking in your application
Previous Topic  Next Topic 

The License Reminder Active-X control can be used to generate a function for calling in your VB, Visual C++ or script application for checking license keys. The function parameters correspond to those provided to the CheckKey GUI application.

 

For trial software you decide how long you want the trial to be and provide the trial dsys as a parameter to the Active-X method.

 

The method returns 0 for an expired license, -1 for a valid unlimited license and a +ve number from 1..n to indicate if it is a limited time license and the number of days there are left to run.

 

The steps your program should follow are:

 

  1. At start-up look for user id and license key in registry or config file
  2. If not empty, call Active-X method to check license
  3. If empty, or invalid, or trial expired, put up a dialog asking for a valid user ID and license to be entered
  4. As soon as a license checks out as valid in the call to the Active-X, allow your application to continue.