LBase::DisplayErrorFromList

#include "ltwrappr.h"

static L_VOID LBase::DisplayErrorFromList (hWndParent=NULL, uIndex=LEAD_LAST_ERROR)

HWND hWndParent;

/* window handle of the parent window */

L_UINT uIndex;

/* index of the recorded error code */

Displays the error string for the error code indexed by uIndex.

Parameter

Description

hWndParent

Window handle of the parent window of the errors dialog.

uIndex

Index into the list of recorded error codes. Pass the index of the recorded error code to display its string. If an invalid index is specified, the last error recorded will be displayed.

Returns

None

Comments

Call this function to display the error string for the error code indexed by the specified index. The internal error list maintains a running list of the errors that have occurred in the LEADTOOLS C++ Class Library functions.

Note: If the error code in the internal error list is not a valid LEADTOOLS error code, the message that is displayed will be "Not a LEADTOOLS error code".

Note: If the internal error list is empty, the message that is displayed will be "Success".

Required DLLs and Libraries

LTKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LBase::EnableAutoErrorDisplay, LBase::SetErrorString, LBase::DisplayError, LBase::GetErrorFromList, LBase::IsAutoErrorDisplayEnabled, LBase::GetErrorFromList, LBase::SetErrorListDepth, LBase::RecordError, LBase::GetErrorListDepth, LBase::ClearErrorList, LBase::GetErrorsNumber, LBase::DisplayErrorList, Class Members

Example

For an example, refer to LBase::GetErrorFromList.