Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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