
LICENSE ACTIVATION from CUSTOMER's APPLICATION

You can activate(begin trial period) of the library from your application.
Use for this the functions described in the twodtg_license.h

1. Initial initialization of the licensing system.

Before using our library, you have to initialize the licensing system:
- call the 'EvaluationDayCount' function from the application as root to start a 30-days trial period. 
- all further calls to library functions do not require administrative privileges. To check whether or not you need administrator rights you can call the 'RequredRootAcess' function.

2. For On-line library activation via the Internet  
use the 'ActivationOnline' function - you will be asked to enter your licenseId and password.

3. Manual activation.

If you need to activate the library on a machine without Internet access, you can use manual activation.
This process includes three steps:
 
3.1. Getting userCode1 and userCode2 - call the 'GetUserCodes' function and it will generate userCode1 and userCode2 values for you.
The userCode1 and userCode2 parameters are OUTPUT parameters.
If one or both of these numbers are zero, then the generation process failed, please contact 2DTG Customer Support.

3.2. From a device connected to the Internet, log into your 2DTG account and go to the 'manual activation' section of your license.
Using the previously obtained userCode1 and userCode2, generate activationCode1 and activationCode2.
 
3.3. Activate your machine by calling the 'ActivationManual' function and passing it the received userCode1 and userCode2,
activationCode1 and activationCode2.
