Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Base class for the exceptions that may be raised by the classes that encapsulate COM interfaces. More...
#include <ilviews/windows/com.h>
Public Member Functions | |
IlvCOMError (HRESULT hr) | |
Constructor. More... | |
DWORD | formatErrorMessage (IlString &message) const |
This member function formats a message string in relation to the error code given to the constructor. More... | |
HRESULT | getErrorCode () const |
This member function returns the error code. More... | |
Static Public Member Functions | |
static DWORD | FormatErrorMessage (HRESULT hr, IlString &message) |
This static member function formats a message string in relation to an error code. More... | |
Base class for the exceptions that may be raised by the classes that encapsulate COM interfaces.
Library: ilvcom
IlvCOMInterface
. IlvCOMError::IlvCOMError | ( | HRESULT | hr | ) |
Constructor.
The parameter is an error code returned by Windows.
hr | A HRESULT |
DWORD IlvCOMError::formatErrorMessage | ( | IlString & | message | ) | const |
This member function formats a message string in relation to the error code given to the constructor.
The message string is formatted by using the Windows API function FormatMessage
. The return code is the code returned by the function FormatMessage
.
message | A reference to a IlString. |
|
static |
This static member function formats a message string in relation to an error code.
The message string is formatted by using the Windows API function FormatMessage
. The return code is the code returned by the function FormatMessage
.
hr | The error code. |
message | A reference to a IlString. |
HRESULT IlvCOMError::getErrorCode | ( | ) | const |
This member function returns the error code.
© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.