_com_error ClassÂ
Microsoft Specific
A _com_error object represents an exception condition detected by the error-handling wrapper functions in the header files generated from the type library or by one of the COM support classes. The _com_error class encapsulates the HRESULT error code and any associated IErrorInfo object.
Construction
Constructs a _com_error object. |
Operators
Assigns an existing _com_error object to another. |
Extractor Functions
Retrieves the HRESULT passed to the constructor. |
|
Retrieves the IErrorInfo object passed to the constructor. |
|
Retrieves the 16-bit error code mapped into the encapsulated HRESULT. |
IErrorInfo Functions
Calls IErrorInfo::GetDescription function. |
|
Calls IErrorInfo::GetHelpContext function. |
|
Calls IErrorInfo::GetHelpFile function |
|
Calls IErrorInfo::GetSource function. |
|
Calls IErrorInfo::GetGUID function. |
Format Message Extractor
Retrieves the string message for HRESULT stored in the _com_error object. |
ExepInfo.wCode to HRESULT Mappers
Maps 32-bit HRESULT to 16-bit wCode. |
|
Maps 16-bit wCode to 32-bit HRESULT. |
END Microsoft Specific
Requirements
Header: comdef.h
Lib: comsuppw.lib or comsuppwd.lib (see /Zc:wchar_t (wchar_t Is Native Type) for more information)