EHLIB 安装方法

Ehlib安装方法  路人甲 2010-05-05 23:01:37

安装文件自带的Readme.txt中的安装过程如下: 1. Delphi 5.x - 7.x, Delphi 9.X Win32, BDS2006 Win32: ----------------------------------------------------

Uninstall previous or evaluation version of EhLib (Old version) from Delphi IDE. Remove or copy to other directory files of old version to prevent crossing old and new version of EhLib (Including EhLib.bpl, EhLib.dcp or EhLibXX.bpl, EhLibXX.dcp, EhLibDataDriversXX, DclEhLibDataDriversXX files).

Create directory from which you will install EhLib library ('EhLib directory') (for example, C:Delphi[X]EhLib).

Copy files from Common and Delphi[X] | BDS2006 directories of the EhLib archive to 'EhLib directory'.

By default Delphi (5, 6 and 7) places compiled files to the <Delphi path>ProjectsBpl directory and this directory already present in the search PATH. But if you overwrite default BPL directory then you need put compiled EhLibXX.BPL file into directory that is accessible through the search PATH (i.e. DOS "PATH" environment variable; for example, in the WindowsSystem directory).

Add, (if needed) 'EhLib directory' in Tools->Environment Options->Library-> Library Path (For Delphi 9 in Tools->Options->Environment Options-> Delphi Options->Library - Win32->Library Path).

Use "FileOpen..." menu item of Delphi IDE to open the runtime package - EhLibXX.Dpk. In "Package..." window click "Compile" button to compile the package.

After that open and compile EhLibDataDriversXX.Dpk.

After compiling run-time packages install design-time packages DclEhLibXX.BPL and DclEhLibDataDriversXX.BPL into the IDE.

For that use "FileOpen..." menu item to open design-time package DclEhLibXX.Dpk. In "Package..." window click "Compile" button to compile the package and then click "Install" button to register EhLib components on the component palette.

After that open and install DclEhLibDataDriversXX.Dpk package.

EhLib components have to appear on 'EhLib' page of components palette.

概括来说,步骤如下:

(1)新建文件夹:D:Program FilesBorlandDelphi7下新建目录Ehlib (2)在Tools->Environment Options->Library->Library Path 中添加这个目录. (3)将Common和Delphi7中的目录的文件拷贝到上面的这个目录中 (4)打开runtime package - EhLib70.Dpk文件,点击"Compile"编译这个package (5)打开并编译EhLibDataDrivers70.Dpk (6)在编译完run-time packages 后安装DclEhLib70.BPL和DclEhLibDataDrivers70.BPL (design-time packages)into the IDE.BPL文件在你自己定义的:$(DELPHI)ProjectsBpl (7)打开DclEhLib70.Dpk(design-time package)编译,然后点击"Install"to register EhLib  components on the component palette.] (8)最后打开和安装DclEhLibDataDrivers70.Dpk package

这个时候在Ehlib选项卡下可以看见20个Ehlib组件,安装成功

我的安装方法:

(1)编译四个dpk文件:EhLib70.Dpk,EhLibDataDrivers70.Dpk,DclEhLib70.Dpk,DclEhLibDataDrivers70.Dpk

(2)在bpl文件夹中找到DclEhLib70.bpl,DclEhLibDataDrivers70.bpl文件,在Install package菜单中安装

OK!!

接下来安装帮助文件: Installation Help ----------------- Copy the EhLib.hlp and EhLib.cnt files to the Delphi HELP subdirectory. Select Help|Customize to start the OpenHelp application. Add the EhLib.cnt file to the Contents page, add the EhLib.hlp file to the Index and Link pages. 比较简单,这里不在赘述. 我安装完之后,测试了一下Delphi的帮助文件,发现根本找不到原来的TDBGrid组件的帮助

初步估计是这两个文件破坏了原来的帮助文件,建议大家要用时直接打开,不用安装帮助文件

了.

原文地址:https://www.cnblogs.com/ziliudi/p/4252939.html