Help Center
Help CenterAfxNova

CAxHost.CreateObjectmethod

COMmethodCAxHost.incundocumented
Not documented upstream. This symbol was found in the AfxNova source but appears in no documentation topic. The signature below is read directly from the code; any description comes from the source comments.

Syntax

PRIVATE FUNCTION CAxHost.CreateObject (BYREF wszProgID AS WSTRING) AS IDispatch PTR
PRIVATE FUNCTION CAxHost.CreateObject (BYREF wszProgID AS WSTRING, BYREF wszLicKey AS WSTRING) AS IDispatch PTR
PRIVATE FUNCTION CAxHost.CreateObject (BYREF classID AS CONST CLSID, BYREF riid AS CONST IID) AS IDispatch PTR
PRIVATE FUNCTION CAxHost.CreateObject (BYREF classID AS CONST CLSID, BYREF riid AS CONST IID, BYREF wszLicKey AS WSTRING) AS IDispatch PTR

Parameters

NameDescription
wszProgIDRequired. The ProgID or the CLSID of the object to create.
AProgID such as "MSCAL.Calendar.7"
ACLSID such as "{8E27C92B-1264-101C-8A2F-040224009C02}"

Return value

The dispatch interface of the control.

Reference

  • Include file CAxHost.inc
  • Defined in AfxNova/CAxHost.inc:702