ApplyKey Method

Apply a new license key. The previously applied key will be replaced with LicenseKey.

Syntax

Visual Basic
Sub ApplyKey(LicenseKey As String) 
Delphi
procedure ApplyKey(LicenseKey: String); 
Visual C++ (MFC)
void ApplyKey(LPCTSTR LicenseKey);
Visual C++ (#import)
void ApplyKey(_bstr_t LicenseKey);

Parameters

LicenseKey

[in] License key string. If NULL or empty string, the control works in demo mode.

Errors

The method may throw exception. Use GetLastError method to get the error code.

ftvspcErrorFailed 1 The operation has not been completed.
ftvspcErrorInvalidParameter 2 Invalid parameter.
ftvspcErrorInvalidLicense 5 Invalid license.
ftvspcErrorIncompatibleVersions 6 Incompatible versions of service and DLL API.