我从51delphi.com下载的控件包Ehlib怎么装不上去呢?请提供详细步骤谢谢!

解决方案 »

  1.   

    http://delphiyd.y365.com/kj3.htm去看看这个吧。。在DELPHI中,控件安装很麻烦不同的控件安装方法不同。如果你还是装不上去提示*.dcu文件没找到。可以把这个文件的地址加到环境变量中去。如果还不行。。那你考虑一下是不是控件的版本和DELPHI不对应了。。
      

  2.   

    1. 把Common目录下的所有文件拷到Delphi[X]目录下,如Delphi6
    2. 打开 EhLib60.dpk ,‘Compile’
    3. 打开 DclEhLib60.dpk ,‘Install’
    4. 在‘Library Path’中加上 ..\Delphi6 这个目录。readme文件中的内容:
    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 files). 
    卸载先前版本的ehlibxx以及把(EhLib.bpl, EhLib.dcp or 
    EhLibXX.bpl, EhLibXX.dcp files)删除或者拷贝到其他目录Create directory from which you will install EhLib library 
    ('EhLib directory') (for example, C:\Delphi[X]\EhLib).
    创建你要安装ehlib库的目录(如: C:\Delphi[X]\EhLib)Copy files from Common and Delphi[X] directories of the EhLib archive
    to 'EhLib directory'.
    把 common 和 delphi[X]拷贝到ehlib文件夹Use "File\Open..." menu item of Delphi IDE to open the runtime package - 
    EhLibXX.Dpk.
    使用"file\open.."打开运行时包EhLibXX.Dpk.In "Package..." window click "Compile" button to compile the package.
    在 "Package"点击Compile编译包文件By default Delphi (5, 6 and 7) place compiled EhLibXX.BPL file 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 (
    默认情况下Delphi (5, 6 and 7) 会把编译过的包文件放在<Delphi path>\Projects\Bpl 目录下,而且这个目录已经在搜索目录中了;但是如果你要覆盖默认bpl目录,你需要把编译过的EhLibXX.BPL 文件放在通过搜索可能存储的目录里,i.e. DOS "PATH" environment variable; 例如: Windows\System directory).Add, (if needed) 'EhLib directory' in Tools->Environment Options->Library->
    Library Path.*****************这一句很关键
    After compiling run-time package you must install design-time
    package DclEhLibXX.BPL into the IDE.
    然后编译运行期包,你必须安装设计期包DclEhLibXX.BPL 到IDE;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. 
    用"File\Open..." 菜单项打开设计期包DclEhLibXX.Dpk 并且单击Compile,接着单击Install注册组件EhLib 到组建面板当中EhLib components have to appear on 'EhLib' page of components palette.
    成功安装!
    祝贺你成功!