CComClassFactory2::CreateInstance

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

At a Glance

Header file: Atlcom.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

CoCreateInstance, CoGetClassObject