CComClassFactory2::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

CoCreateInstance, CoGetClassObject