LBase::IsAutoErrorDisplayEnabled

#include "ltwrappr.h"

static L_BOOL LBase::IsAutoErrorDisplayEnabled (L_VOID)

Indicates whether automatic error display is enabled or not.

Returns

TRUE

Automatic error display is enabled.

FALSE

Automatic error display is disabled.

Comments

Call this function to check whether automatic error display is enabled or not. The internal error list maintains a running list of the errors that have occurred in the LEADTOOLS Class Library functions.

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

Elements:

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

Example

LBitmap MyBitmap;

MyBitmap.Load(TEXT("Image1.cmp"));
if(LBase::IsAutoErrorDisplayEnabled()==FALSE)
   LBase::EnableAutoErrorDisplay(TRUE);

MyBitmap.AddNoise();      //now if an error occurs it will be automatically displayed.