#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. |