SetLicenseKey


The SetLicenseKey method sets license key for the object.
C++
void SetLicenseKey(
  LPSTR Key                  // license key
);
BASIC
SetLicenseKey(
  Key As Variant             // license key
)

Parameters

Key
C++
Pointer to buffer containing license key (must be NULL terminated).
BASIC
Variant containing license key.
Variant must be of String data type; it must not be an array.

Return Values

Method has no return value.

Remarks

Object must be licensed before usage, by supplying valid license key of one of allowed types. License key is checked in most of IXFile methods; if it is recognized as invalid or expired methods return IXF_FAILURE_LICENSE failure code. Method should be called immediately after object is created, before calling any other methods.

See Also

License Keys, Object Creation and Initialization