This topic has not yet been rated - Rate this topic

CSimpleException::GetErrorMessage

Call this member function to provide text about an error that has occurred.

virtual BOOL GetErrorMessage( 
   LPTSTR lpszError, 
   UINT nMaxError, 
   PUNIT pnHelpContext = NULL 
);
lpszError

A pointer to a buffer that will receive an error message.

nMaxError

The maximum number of characters the buffer can hold, including the NULL terminator.

pnHelpContext

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.

Header: afx.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.