Help Center
Help Center›AfxNova

AfxNewComfunction

COMfunctionAfxCOM.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 AfxNewCom OVERLOAD (BYREF wszProgID AS CONST WSTRING, BYREF wszLicKey AS WSTRING = "") AS ANY PTR
PRIVATE FUNCTION AfxNewCom OVERLOAD (BYREF wszClsID AS CONST WSTRING, BYREF wszIID AS CONST WSTRING) AS ANY PTR
PRIVATE FUNCTION AfxNewCom OVERLOAD (BYREF classID AS CONST CLSID) AS ANY PTR
PRIVATE FUNCTION AfxNewCom OVERLOAD (BYREF classID AS CONST CLSID, BYREF riid AS CONST IID) AS ANY PTR

Parameters

NameDescription
wszProgIDThe ProgID or the CLSID of the object to create.
AProgID such as "MSCAL.Calendar.7"
ACLSID such as "{8E27C92B-1264-101C-8A2F-040224009C02}" wszLicKey (optional) The license key as a unicode string.
or- pDic = AfxNewCom(CLSID_Dictionary) where CLSID_Dictionary has been declared as CONST CLSID_Dictionary = "{EE09B103-97E0-11CF-978F-00A02463E06F}"

Return value

The interface pointer or NULL. Usage examples: DIM pDic AS IDictionary PTR pDic = AfxNewCom("Scripting.Dictionary")

Reference

  • Include file AfxCOM.inc
  • Defined in AfxNova/AfxCOM.inc:185