This method creates an object of the specified CLSID and retrieves an interface pointer to this object.
HRESULT CreateInstance( LPUNKNOWN pUnkOuter, REFIID riid, void** ppvObj );
Header file: | Atlcom.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
CoCreateInstance, CoGetClassObject