ChartDirector 6.0 (C++ Edition)

Chart.setLicenseCode


Usage

bool setLicenseCode(const char *licCode, char *buffer = 0);

Description

Sets the license code into ChartDirector.

ChartDirector will automatically get its license code from the file "chartdir.lic".

If for some reason, you do not want to use the "chartdir.lic" file (eg. you want to embed ChartDirector with your application, but you do not want people to see the "chartdir.lic" file), you may use the setLicenseCode method to hard code the license code into your source code.

If ChartDirector is run without any license code, it will run in evaluation mode.

Arguments

ArgumentDefaultDescription
licCode(Mandatory)A text string containing the license code.
buffer0A buffer to hold the error message in case of error. The buffer should be at least 2048 bytes in size. If the buffer is 0 (null pointer), no error message will be returned.

Return Value

A true value indicates the license code is accept. A false value indicates the license code is rejected. In the latter case, the error message will be stored in the buffer.