LBase::GetErrorFromList

Summary

Retrieves an error code from the internal error list.

Syntax

#include "ltwrappr.h"

static L_INT LBase::GetErrorFromList (uIndex=LEAD_LAST_ERROR)

Parameters

L_UINT uIndex

The index of the error to get from the error list. If an invalid index is specified, the last error recorded will be returned.

Returns

Value Meaning
SUCCESS The internal error list was empty.
< 1 The error code of the error indexed by uIndex. Refer to Return Codes.

Comments

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.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

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 Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.