COleObjectFactory::VerifyLicenseKey
Verifies that the container is licensed to use the OLE control.
virtual BOOL VerifyLicenseKey(
BSTR bstrKey
);
Parameters
- bstrKey
A BSTR storing the container's version of the license string.
Return Value
Nonzero if the run-time license is valid; otherwise 0.
Remarks
The default version calls GetLicenseKey to get a copy of the control's license string and compares it with the string in bstrKey. If the two strings match, the function returns a nonzero value; otherwise it returns 0.
You can override this function to provide customized verification of the license.
The function VerifyUserLicense verifies the design-time license.
Requirements
Header: afxdisp.h
See Also
Reference
COleObjectFactory::VerifyUserLicense
COleObjectFactory::GetLicenseKey