CAtlExeModuleT::InitializeCom

Initializes COM.

static HRESULT InitializeCom( ) throw( );

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

This method is called from the constructor and can be overridden to initialize COM in a manner different from the default implementation. The default implementation either calls CoInitializeEx(NULL, COINIT_MULTITHREADED) or CoInitialize(NULL) depending on the project configuration.

Overriding this method normally requires overriding CAtlExeModuleT::UninitializeCom.

Requirements

Header: atlbase.h

See Also

Reference

CAtlExeModuleT Class

CoInitialize

CoInitializeEx

Other Resources

CAtlExeModuleT Members