Using LEADTOOLS with Your C++ Compiler

To use the LEADTOOLS Class Library you have to go through the following steps:

1

Link your application to the LIB file for the class library which is LTWVC_N.LIB for MSVC compilers and LTWEN_BC.LIB for Borland compilers.

2

At the start of your application load the desired set of LEAD libraries by calling:

 

LBase::LoadLibraries(L_UINT32 uLibrary); with flags indicating which libraries to load. For example to load LEAD LTKRN14n.dll library:

WinMain()
{


LBase::LoadLibraries(LT_KRN);

}

 

For Microsoft C, you need to include the Class Library .LIB file that LEADTOOLS supplies in order to use the LEADTOOLS Class Library objects. For a summary of the library files, refer to Files To Be Included With Your Application. For the library files required by a particular class, refer to the class description.

 

For other compilers, you may need to generate a .LIB file from the Class Library .DLL. For example, use the IMPLIB.EXE program with Borland C, versions 3.x and 4.x. For other compilers, you should also specify alignment on a 1-byte boundary.