Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
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