Поделиться через


CAtlExeModuleT::InitializeCom

Initializes COM.

static HRESULT InitializeCom( ) throw( );

Возвращаемое значение

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

Заметки

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.

Требования

Header: atlbase.h

См. также

Основные понятия

CAtlExeModuleT Class

CAtlExeModuleT Members

CoInitialize

CoInitializeEx