In This Topic ▼

L_GetFriendlyErrorMessage

#include "l_bitmap.h"

L_LTKRN_API L_INT L_GetFriendlyErrorMessage(nError, pszErrorMessage, count, bDeveloperMode);

L_INT nError;

LEADTOOLS return code

L_TCHAR* pszErrorMessage;

pointer to the target string

L_UINT count;

size of the target string

L_BOOL bDeveloperMode;

flag

Gets a friendly error message string for the specified LEADTOOLS return code.

Parameter

Description

nError

The LEADTOOLS return code. See Return Codes.

pszErrorMessage

Pointer to your string that will be updated with the friendly message.

count

The size of your string that will hold the friendly message. Up to count characters will be copied to _pszErrorMessage_.

bDeveloperMode

Reserved for future use. Pass FALSE.

Returns

< 0

An error occurred. Refer to Return Codes.

Comments

Platforms

Win32, x64, Linux.

See Also

Return Codes

Example

Gets a friendly error message string for the specified LEADTOOLS return code.

L_INT GetFriendlyErrorMessageExample() 
static L_INT GetFriendlyErrorMessageExample() 
{ 
   /* create an error */ 
   L_INT nRet = L_SetLicenseFile(L_TEXT("some file that does not exist"), L_TEXT("some invalid developer key")); 
   L_TCHAR ErrorBuf[1024] = { 0 }; 
   L_GetFriendlyErrorMessage(nRet, ErrorBuf, _countof(ErrorBuf), L_FALSE); 
   MessageBox(NULL, ErrorBuf, L_TEXT("Friendly Error Message"), MB_OK | MB_ICONERROR); 
   return SUCCESS; 
} 

Help Version 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help