Поделиться через


CAxWindow2T::CreateControlLicEx

Creates a licensed ActiveX control, initializes it, hosts it in the specified window, and retrieves an interface pointer (or pointers) from the control.

HRESULT CreateControlLicEx(
   LPCOLESTR lpszName, 
   IStream* pStream = NULL,
   IUnknown** ppUnkContainer = NULL, 
   IUnknown** ppUnkControl = NULL,
   REFIID iidSink = IID_NULL, 
   IUnknown* punkSink = NULL, 
   BSTR bstrLicKey = NULL
);
HRESULT CreateControlLicEx(
   DWORD dwResID,
   IStream* pStream = NULL,
   IUnknown** ppUnkContainer = NULL,
   IUnknown** ppUnkControl = NULL,
   REFIID iidSink = IID_NULL, 
   IUnknown* punkSink = NULL, 
   BSTR bstrLickey = NULL
);

Параметры

  • bstrLicKey
    The license key for the control; NULL if creating a nonlicensed control.

Заметки

See CAxWindow::CreateControlEx for a description of the remaining parameters and return value.

Пример

See Hosting ActiveX Controls Using ATL AXHost for a sample that uses CAxWindow2T::CreateControlLicEx.

Требования

Header: atlwin.h

См. также

Основные понятия

CAxWindow2T Class

CAxWindow2T Members