This method is similar to CreateInstance, except that CreateInstanceLic requires a license key.
HRESULT CreateInstanceLic( IUnknown* pUnkOuter, IUnknown* pUnkReserved, REFIID riid, BSTR bstrKey, void** ppvObject );
Header file: | Atlcom.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
CComClassFactory2 Overview, CComClassFactory2 Methods, CoCreateInstance, CoGetClassObject