我在
Tools/En..Options
加入了.pas单元
但在安装控件时找不到.pas文件

解决方案 »

  1.   

    所有控件的安装方法类似:下面的是Ehlib控件的安装方法!//--你的这里比较关键------------------------
    设置原文件的目录
    Tools->Enviroment Options->Library 
    Library path  把你控件目录添加进去即可
    browsing path
    或者
    把包含控件的源文件放在$(DELPHI)\Lib;$(DELPHI)\Bin;$(DELPHI)\Imports;$(DELPHI)\Projects\Bpl;目录下
    //--你的这里比较关键------------------------我也装了,很费时
    过程如下
    1、 delphi7文件夹以及common文件夹的内容考在一起,(把delphi7的内容拷在common目录下)
    2、再environmnet option-〉library->library path 添加你的ehlib->common的目录
      和browsing path 
    3、编译(ehlib和dclehlib)后install;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.
    成功安装!
    祝贺你成功!