Partager via


IAxWinHostWindowLic::CreateControlLicEx

Creates a licensed ActiveX control, initializes it, and hosts it in the specified window, similar to IAxWinHostWindow::CreateControl.

STDMETHOD( CreateControlLicEx )(
   LPCOLESTR lpszTricsData,
   HWND hWnd,
   IStream* pStream,
   IUnknown** ppUnk,
   REFIID riidAdvise,
   IUnknown* punkAdvise, 
   BSTR bstrLic
);

Parameters

  • bstrLic
    [in] The BSTR that contains the license key for the control.

Remarks

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

Example

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

Requirements

Header: atliface.h

See Also

Reference

IAxWinHostWindowLic Interface

Other Resources

IAxWinHostWindowLic Members