LEADTOOLS Support
General
General FAQ
How do I know what DLLs I need to include in my application?
#1
Posted
:
Wednesday, March 8, 2017 10:09:38 AM(UTC)
Groups: Manager, Tech Support, Administrators
Posts: 218
Was thanked: 12 time(s) in 12 post(s)
When you are developing and deploying your application, you need to include the necessary LEADTOOLS runtime files in the form of DLLs in your projects output directory in order to make method/function calls into the SDK. Some of these DLLs need to be referenced by your project in order for it to compile, but some of them are loaded dynamically on an as needed basis. Therefore it is possible to compile and run the project yet receive an exception while running the application telling you that you are missing something. For example, if you get the 'CMP Codec is needed' exception, that means that you are attempting to load a CMP or JPEG image file but are not including the Leadtools.Codecs.Cmp.dll (.NET) or Lfcmp.dll (CDLL).
In order to find out which DLLs you need to include in your application, we provide links within the documentation that list out which DLLs are needed for which functionality. Here are some useful links:
.NET Files to be Included With your ApplicationC API Files to be Included With Your ApplicationC++ Class Library Files to be Included With Your ApplicationJavaScript Files To Be Included With Your ApplicationIf you are using OCR, then here are some links on what DLLS are needed specifically for OCR:
.NET Files to be Included with Your OCR ApplicationC API Files to be Included with Your OCR ApplicationAnother option to figure out exactly which DLLs you need to include in your project is to set your project's Output path to the Bin directory of the framework you are using and then run Process Explorer in order to see which DLLs are being referenced by your project like so:
Process Explorer is a free utility from Microsoft that you can download here:
http://technet.microsoft...sinternals/bb896653.aspxTo see the DLLs, click on View -> Lower Pane View -> DLLs.
To see the path of the DLLs, click on View -> Select Columns, go to the DLL tab, and select the Path checkbox.
Here is an example of running the Open Save Demo with its output path set to the Bin directory and seeing which DLLS are needed to load a CMP image.
Edited by moderator Wednesday, December 27, 2023 1:32:31 PM(UTC)
| Reason: Updated links to v20
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.
LEADTOOLS Support
General
General FAQ
How do I know what DLLs I need to include in my application?
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.