我曾经用过DELPHI 3 ,在DELPHI3 中如果你有DCP文件,类似于工程文件Delphi4 中的BPL文件,
你可以通过菜单项COMPONENT/Install Componet向组件板添加组件,而用Install子菜单是无法进行安装的,
这也就是你所说的它找不到DCP文件.
如果没有DCP文件,你必须先利用你的DCR文件(它是一个工程文件,包括了所含有的被安装组件的PAS源文件);
编译后,生成你的DCP文件,并进行安装.而对DCR工程文件进行编译是,如果路径有误,或者找不到DCU文件,
就会提示PAS文件找不到,我记得BUILD一下似乎就能解决.或者设置以下查找路径.
目前我用的是DELPHI4,Delphi 4在安装组件时,如果你已经生成了BPL文件,你可以通过
菜单项COMPONENT/Install Componet向组件板添加组件,否则,你必须编译你的
组件工程文件(*.DPK),从而生成*.bpl文件,因此需要组件的源文件进行编译.
.DPK The source file listing the units contained in the package.
.DCP A binary image containing a package header
and the concatenation of all DCU files in the package,
including all symbol information required by the compiler.
A single DCP file is created for each package.
The base name for the DCP is the base name of the DPK source file.
You must have a .DCP file to build an application with packages.
.DCU A binary image for a unit file contained in a package.
One DCU is created, when necessary, for each unit file.
.BPL The runtime package.
This file is a Windows DLL with special Delphi-specific features.
The base name for the BPL is the base name of the DPK source file.