Sets the runtime license for LEADTOOLS and unlocks support for optional features such as LEADTOOLS Imaging Pro, Document and Medical Imaging capabilities, or PDF support.
#include "l_bitmap.h"
L_LTKRN_API L_INT L_SetLicenseFile (pszLicenseFile, pszDeveloperKey)
Character string containing the name of the LEADTOOLS runtime license file to load.
Character string containing the developer key.
| Value | Meaning |
|---|---|
| SUCCESS | The runtime license was valid. |
| < 0 | An error occurred. Refer to Return Codes. |
You must use this function to set the runtime license for LEADTOOLS and to unlock support for any optional features that you have licensed. If you do not set a runtime license, your application will display a "nag" message dialog at runtime, indicating that you have developed the application without a valid runtime license.
In order to obtain a runtime license and developer key, you must contact LEAD. For more information, refer to About LEADTOOLS Runtime Licenses.
For information about LEADTOOLS Document/Medical capabilities, contact LEAD.
To determine whether support for optional features has been unlocked, use the L_IsSupportLocked function.
To set the runtime license from a memory buffer instead of a disk file, use the L_SetLicenseBuffer function.
Win32, x64, Linux.
Set the LEADTOOLS runtime license from a disk file.
#define MY_LICENSE_FILE L_TEXT("d:\\temp\\TestLic.lic")#define MY_DEVELOPER_KEY L_TEXT("xyz123abc")L_INT SetLicenseFileExample(L_VOID){/* set the runtime license */L_INT nRet = L_SetLicenseFile(MY_LICENSE_FILE, MY_DEVELOPER_KEY);/* check for unlocked support */if (L_IsSupportLocked(L_SUPPORT_MEDICAL))MessageBox(NULL, L_TEXT("Medical Locked\n"), L_TEXT(""), MB_OK);elseMessageBox(NULL, L_TEXT("Medical Unlocked\n"), L_TEXT(""), MB_OK);return nRet;}
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
