Retrieves an error code from the internal error list.
#include "ltwrappr.h"
static L_INT LBase::GetErrorFromList (uIndex=LEAD_LAST_ERROR)
The index of the error to get from the error list. If an invalid index is specified, the last error recorded will be returned.
Value | Meaning |
---|---|
SUCCESS | The internal error list was empty. |
< 1 | The error code of the error indexed by uIndex. Refer to Return Codes. |
Call this function to retrieve an error code from the internal error list. The internal error list maintains a running list of the errors that have occurred in the LEADTOOLS C++ Class Library functions.
Win32, x64.
L_INT LBase__GetErrorFromListExample(HWND hWndParent)
{
L_INT nRet;
LBitmap MyBitmap;
nRet = MyBitmap.Load(MAKE_IMAGE_PATH(TEXT("Image1.cmp")));
if(nRet != SUCCESS)
return nRet;
nRet = MyBitmap.AddNoise();
if(nRet != SUCCESS)
return nRet;
if(LBase::GetErrorFromList()!=SUCCESS)
LBase::DisplayErrorFromList(hWndParent);
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document