lxaLoadLicense

<< | Back to Salience 6 C API Index | lxaOpenSalienceSession >>

Summary

This function loads a license file.

Syntax

int lxaLoadLicense(const char* acPath, LexalyticsLicense* pLicense, char** acError);

Parameters

acPath Pointer to a null-terminated string containing the path to the required license file
pLicense Pointer to a LexalyticsLicense structure
acError Pointer to a char* buffer

Returns

If the license is not loaded, i.e. the return value is not LXA_OK then acError will be filled with a descriptive error message. You should use lxaFreeString to free this buffer.

Example

     char* acLicensePath = "/path/to/license/file";
     char* acError;
     LexalyticsLicense oLicense;
     if(lxaLoadLicense(acLicensePath, &oLicense, &acError) != LXA_OK)
     {
          std::cout << acError << std::endl;
          return 1;
     }
     lxaFreeString(acError);
     ...

<< | Back to Salience 6 C API Index | lxaOpenSalienceSession >>