# Licensing

By having any Visage Technologies Program, or part of it, installed or copied on your computer, you agree to the terms of the Visage Technologies AB Software License Agreement. If you do not agree with these terms, please entirely remove any Visage Technologies Programs from your computer. This section focuses on technical issues such as obtaining and using the license key files. For detailed commercial conditions please contact Visage Technologies.

Applications developed using visage|SDK must be licensed in order to function. Licensing is based on License Key Files. A single License Key File is valid for one or more installations on one or more platforms (operating systems). The License Key File can be opened in a text editor in order to read the licensing information, but it is important not to change the file in any way as it would become invalid.

Applications without a valid license key will not work properly and appropriate warning message will be displayed.

## Obtaining the License Key File

For 30-day evaluation, simply send an email request to your Visage Technologies contact person and you will receive a License Key File by email.

## Including the License Key File in your application

Add License Key File to the Resource group of your app project. In your application, you need to call the initialization function in order to let the Application read the License Key File. This is done as follows in your application code:

    	// neccessary prototype declaration for licensing
    	namespace VisageSDK {
    		int initializeLicenseManager(const char *licenseKeyFileName);
    	}

    	//...

    	//initialize licensing
    	initializeLicenseManager("name-of-the-license-file.vlc");

where "name-of-the-license-file.vlc" is the name of your License Key File. The above example expects the License Key File to be in the same place as the executable file.

In the Sample projects the licensing code is already inserted, so you just need to change the license key file name when you obtain the license key file. Specifically:
In the Visage Tracker Demo sample project, the licensing code is found in the main method, in the VisageTrackerAnalyseCurlDemo.cpp file.
In the Visage Detector Demo sample project, the licensing code is found in the in main method, in the VisageDetectorAnalyseCurlDemo.cpp file.