C++ Builder Problems

In some C++ Builder builds, when the user tries to handle some ActiveX controls’ events, he will get event handlers with incorrect parameter names. The following events in the LEAD Raster View Control generate this problem:

KeyDown event

KeyPress event

KeyUp event

ZoomInDone event

To fix this problem try the following:

If LEAD Raster View Control was not installed on your C++ Builder, ignore step A, and start from step B.

Step A:

If LEAD Raster View Control is already installed on your C++ Builder software, remove it as follows:

1.

Open the package dclusr40.bpk, usually in the \Borland\CBuilder4\Lib folder (or the package that you installed LEAD Raster View Control on).

2.

Remove the "LTRASTERVIEWLib_OCX.cpp" and "LTRASTERVIEWLib_OCX.dcr" files from the opened package.

3.

Compile the dclusr40.bpk or the package that you opened in step 1 to uninstall LEAD Raster View Control.

4.

Now you have to reinstall the LEAD Raster View Control, to reinstall it go to step B.

Step B:

To install the LEAD Raster View Control, do the following:

1.

Use the Command prompt program.

2.

Change the directory to the \Borland\CBuilder4\Imports folder.

3.

Type this command line "tlibimp -p+ c:\windows\system32\ltrvw14N.OCX" without the quotation marks. (Change c:\windows\system32\ to your system folder where ltrvw14N.OCX resides).

4.

Open the C++ Builder 4.

5.

Open the package dclusr40.bpk, usually in the \Borland\CBuilder4\Lib\ folder (or any package you want to add the LEAD Raster View Control to).

6.

Using the Add button, add the "Pascal" files "LTRASTERLib_TLB.pas", and "LTRASTERVIEWLib_TLB.pas" generated using the tlibimp command line in step B3.

7.

Compile the dclusr40.bpk package.

8.

Install the dclusr40.bpk, which will install the LEAD Raster View Control.