天天看点

Ehlib安装方法

安装文件自带的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>/projects/bpl 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 windows/system 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 "file/open..." 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 "file/open..." 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 files/borland/delphi7/下新建目录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)/projects/bpl

(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组件的帮助

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

了.