Call this member function to provide text about an error that has occurred.
virtual BOOL GetErrorMessage(
PUNIT pnHelpContext = NULL
A pointer to a buffer that will receive an error message.
The maximum number of characters the buffer can hold, including the NULL terminator.
The address of a UINT that will receive the help context ID. If NULL, no ID will be returned.
Nonzero if the function is successful; otherwise 0 if no error message text is available.
For more information, see CException::GetErrorMessage.