新装的delphi7.0,想在里面安装控件ehlib V4.2,按照readme里面的说明安装,编译没有错误,当安装DclEhLib70.Dpk时,出现如下错误:
---------------------------
Error
---------------------------
Registration procedure,
Ehlibreg.Register in package
c:\program files\borland\delphi7\Projects\Bpl\DclEhLib70.bpl
raised exception class EFilerError: A class named TPreviewBox already exists.
---------------------------
OK
---------------------------
请问一下这是什么原因造成的,如何解决这个问题?另外里面的DclEhLib110.dpk,DclEhLib100.dpk和安装文件没有关系吧。
---------------------------
Error
---------------------------
Registration procedure,
Ehlibreg.Register in package
c:\program files\borland\delphi7\Projects\Bpl\DclEhLib70.bpl
raised exception class EFilerError: A class named TPreviewBox already exists.
---------------------------
OK
---------------------------
请问一下这是什么原因造成的,如何解决这个问题?另外里面的DclEhLib110.dpk,DclEhLib100.dpk和安装文件没有关系吧。
真正的安装过程是:EhLib_v4.1.4在 Delphi 7 中的安装
1. 把(EHLIB)\common文件夹中的文件拷贝到(EHLIB)\Delphi7目录中.
2. 在 TOOLS->Environment Options->Library->Library Path 中添入(EHLIB)\Delphi7路径。【刚开始我一直以为是放delphi的安装目录下,网上不写清楚装酷】
3. 在 TOOLS->Environment Options->Library->Library Path 中添入(EHLIB)\DataService路径。
4. 打开(EHLIB)\Delphi7文件夹中的 EHLIB70.DPK ,编译一下,但不要安装。
5. 打开(EHLIB)\Delphi7文件夹中的 DclEhLib70.dpk,编译并安装。
6. 打开(EHLIB)\Delphi7文件夹中的 EhLibDataDrivers70.dpk ,编译一下,但不要安装。
7. 打开(EHLIB)\Delphi7文件夹中的 DclEhLibDataDrivers70.dpk,编译并安装。
8. 组件面板中出现一个EhLib的组件页。
9. 打开附带的DEMOS,编译并运行,测试安装成功。楼主这是我以前收集按装的过程和自己安装经验,看看能否帮到你.