The License method must be called to license the component for runtime use. This applies to both registered users as well as users of a time-limited free trial license.
If you do not call this method, Xceed Streaming Compression Library method calls will not work and will immediately return the cerNotLicensed error code.
The License method must be the first method you call after instantiating the component and/or before any other methods are called. For example:
VB.NET | ![]() |
---|---|
Dim WithEvents m_xSco As XceedStreamingCompression |
Parameter | Description |
---|---|
sLicense | Provide your license key here. Both registered users and trial version users have a license key. This key can be found by selecting the Programs -> Xceed Components -> Xceed Component Licenser menu item. Trial version keys are time-limited and will not work after the trial period has ended. |
Returns True if the license key was accepted; False if the license key was invalid.
The License method is required because methods such as CreateObject() and CoCreateInstance() do not cooperate with the licensing scheme provided by IClassFactory2.
Declaration (DXceedStreamingCompression) | ![]() |
---|---|
HRESULT License( [in] BSTR sLicense, [out,retval] VARIANT_BOOL* pbSucceeded ) |
Declaration (IXceedStreamingCompression) | ![]() |
---|---|
|