A Special Note About UNICODE Support

LEADTOOLS now provides UNICODE support. However, in order to utilize the examples and tutorials in this help file with UNICODE, you must make a few substitutions for class names, IDs, event names, etc. This is true for VB, MFC, Delphi and C++ Builder. Before attempting to compile the samples or tutorials in this help file for UNICODE, replace the class name, ID name, event name, etc. in the first column below, with the corresponding name in the second column. As you can see, this just involves adding "_U" to the end of the class name, ID name, event name, etc.

General Notes For VC++ Programmers:

1.

Replace:

With:

LTRASTERXXXXLib

LTRASTERXXXXLib_U

ILEADRasterXXXX

ILEADRasterXXXX_U

LEADRasterXXXX

LEADRasterXXXX_U

IID_ILEADRasterXXXX

IID_ILEADRasterXXXX_U

CLSID_LEADRasterXXXX

CLSID_LEADRasterXXXX_U

LIBID_LTRASTERXXXXLib

LIBID_LTRASTERXXXXLib_U

_LEADRasterXXXXEvents

_LEADRasterXXXXEvents_U

DIID__LEADRasterXXXXEvents

DIID__LEADRasterXXXXEvents_U

For example:

ILEADRasterIO_U *pRasterIO=NULL;

CoCreateInstance(CLSID_LEADRasterIO_U, NULL, CLSCTX_ALL, IID_ILEADRasterIO_U, (void**)&pRasterIO);

2.

For importing (.DLL) or (.OCX) files in your project:

Replace:

With:

LTRXXXN.OCX

LTRXXXNU.OCX

LTRXXXN.DLL

LTRXXXNU.DLL

For example:

#import "c:\\winnt\\system32\\ltrvr14nu.dll"  no_namespace, named_guids

#import "c:\\winnt\\system32\\ltrvw14nu.ocx"  no_namespace, named_guids

General Notes For VB Programmers:

 

Replace:

With:

LTRASTERXXXXLib

LTRASTERXXXXLib_U

LEADRasterXXXX

LEADRasterXXXX_U

LEADRasterXXXX_EventName

LEADRasterXXXX_U_EventName

LEADRasterXXXX.LEADRasterXXXX

LEADRasterXXXX_U.LEADRasterXXXX_U

 

When adding a Reference or Component to a Visual Basic project, be sure that the desired Reference or Component name ends with (_U).

For example:

To add the Unicode version of LEAD RasterView Control to your project, you have to select LEAD Raster View_U Control (14).

 

General Notes For Delphi and C++ Builder Programmers:

 

Replace:

With:

LTRASTERXXXLib_TLB

LTRASTERXXXLib_U_TLB

ILEADRasterXXXX

ILEADRasterXXXX_U

CLASS_LEADRasterXXXX

CLASS_LEADRasterXXXX_U

LEADRasterXXXX

LEADRasterXXXX_U

IID_ILEADRasterXXXX

IID_ILEADRasterXXXX_U

CLSID_LEADRasterXXXX

CLSID_LEADRasterXXXX_U

LIBID_LTRASTERXXXXLib

LIBID_LTRASTERXXXXLib_U

_LEADRasterXXXXEvents

_LEADRasterXXXXEvents_U

DIID__LEADRasterXXXXEvents

DIID__LEADRasterXXXXEvents_U

 

 

Note:

When adding an ActiveX Control or Import type library to a Delphi or C++ Builder project, be sure that the desired ActiveX Control or Library name ends with (_U).

For example:

To add the Unicode version of LEAD Raster View Control to your project, you have to select LEAD Raster View_U Control (14).