| |
| INT ShowError(
|
| |
LPCTSTR lpszAppTitle, |
|
| |
UINT uType, |
|
| |
DWORD dwErrorCode |
|
| );
|
The ShowError method displays a message box which
describes the specified error.
Parameters
- lpszAppTitle
- A pointer to a null-terminated string which specifies the title
of the message box that is displayed. If this argument is NULL or
omitted, then the default title of "Error" will be displayed.
- uType
- An unsigned integer which specifies the type of message box
that will be displayed. This is the same value that is used by the
MessageBox function in the Windows API. If a value of zero
is specified, then a message box with a single OK button will be
displayed. Refer to that function for a complete list of
options.
- dwErrorCode
- Specifies the error code that will be used when displaying the
message box. If this argument is zero, then the last error that
occurred in the current thread will be displayed.
Return Value
If the method is successful, the return value will be the return
value from the MessageBox function. If the method fails, it
will return a value of zero.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cstools7.h.
Library: Use csdnsav7.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
GetErrorString, GetLastError, SetLastError
|
|