#include "ltwrappr.h"
static L_BOOL LBase::IsAutoErrorDisplayEnabled ()
Indicates whether automatic error display is enabled or not.
TRUE |
Automatic error display is enabled. |
FALSE |
Automatic error display is disabled. |
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 C++ 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. |
Win32, x64.
#define MAKE_IMAGE_PATH(pFileName) TEXT("C:\\Users\\Public\\Documents\\LEADTOOLS Images\\")pFileName
L_INT LBase__IsAutoErrorDisplayEnabledExample()
{
L_INT nRet;
LBitmap MyBitmap;
MyBitmap.Load(MAKE_IMAGE_PATH(TEXT("Image1.cmp")));
if(LBase::IsAutoErrorDisplayEnabled()==FALSE)
LBase::EnableAutoErrorDisplay(TRUE);
nRet = MyBitmap.AddNoise(); //now if an error occurs it will be automatically displayed.
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET