LBase::GetErrorString

Summary

Retrieves a pointer to the internal LEADTOOLS error string for the specified error code.

Syntax

#include "ltwrappr.h"

static L_TCHAR *LBase::GetErrorString (nErrorCode)

Parameters

L_INT nErrorCode

One of the LEADTOOLS error codes. If you specify an invalid error code, the string returned will be "Not a LEADTOOLS error code".

Returns

A pointer to the LEADTOOLS error code string.

Comments

Call this function to retrieve a pointer to the internal LEADTOOLS error string for the specified error code. This function will return NULL if an invalid error code is passed. You should not attempt to free the buffer returned by this function.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

L_INT LBase__GetErrorStringExample() 
{ 
	LBitmap LeadBitmap; 
 
	L_TCHAR *pcErr; 
	 
	pcErr =LeadBitmap.GetErrorString(WRPERR_BITMAP_NOT_ALLOCATED); 
	 
	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.