Gets a friendly error message string for the specified LEADTOOLS return code.
#include "l_bitmap.h"
L_LTKRN_API L_INT L_GetFriendlyErrorMessage(nError, pszErrorMessage, count, bDeveloperMode);
The LEADTOOLS return code. See Return Codes.
Pointer to your string that will be updated with the friendly message.
The size of your string that will hold the friendly message. Up to count characters will be copied to pszErrorMessage
.
Reserved for future use. Pass FALSE.
Value | Meaning |
---|---|
< 0 | An error occurred. Refer to Return Codes. |
Win32, x64, Linux.
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 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