CComClassFactory::CreateInstance

This method creates an object of the specified CLSID and retrieves an interface pointer to this object.

Syntax

HRESULT CreateInstance( LPUNKNOWN pUnkOuter, REFIID riid, void** ppvObj );

At a Glance

Header file: Atlcom.h
Platforms:
Versions: 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CComClassFactory Overview, CComClassFactory Methods, CoCreateInstance, CoGetClassObject