comstl/util/creation_functions.hpp File Reference


Detailed Description

[C++ only; requires COM] COM instance creation helper functions (COM Utility Library).

#include <comstl/comstl.h>
#include <comstl/util/interface_traits.hpp>
#include <stlsoft/smartptr/ref_ptr.hpp>

Go to the source code of this file.

Namespaces

namespace  comstl

Functions

template<typename I>
HRESULT co_create_instance (REFCLSID clsid, I **ppi, DWORD dwClsContext=CLSCTX_ALL)
 Type-safe creation of a COM object, acquiring the requisite interface pointer.
template<typename I>
HRESULT co_create_instance (LPCOLESTR id, I **ppi, DWORD dwClsContext=CLSCTX_ALL)
 Type-safe creation of a COM object from a Programmatic Id, acquiring the requisite interface pointer.
template<typename T, typename I, typename U>
HRESULT co_create_instance (REFCLSID clsid, stlsoft::ref_ptr< T, I, U > &wi, DWORD dwClsContext=CLSCTX_ALL)
 Type-safe creation of a COM object, acquiring the requisite interface pointer into an interface wrapper instance.
template<typename T, typename I, typename U>
HRESULT co_create_instance (LPCOLESTR id, stlsoft::ref_ptr< T, I, U > &wi, DWORD dwClsContext=CLSCTX_ALL)
 Type-safe creation of a COM object from a Programmatic Id, acquiring the requisite interface wrapper instance.


Generated on Thu Jun 10 08:57:57 2010 for STLSoft by  doxygen 1.5.6