Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1714869
  • 博文数量: 263
  • 博客积分: 1218
  • 博客等级: 少尉
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-19 02:33
文章分类

全部博文(263)

文章存档

2020年(12)

2019年(2)

2018年(10)

2016年(1)

2015年(20)

2014年(115)

2013年(46)

2012年(37)

2011年(20)

分类: WINDOWS

2012-06-26 23:47:24

How To Install Custom Component in Delphi (into existing package).

1。Start Delphi and select Component | Install Component... 
2。This will invoke the "Install Component" dialog. 
3。In the "Unit File Name" edit box enter the name of the unit you want to install. 
4。If the unit is in the Search Path, a full path name is not required. If the unit directory 5。is not in the Search Path, it will be added to the end. 
6。The "Search Path" edit box displays the path used by Delphi to search for files. Leave this as it is. 
7。Use the "Package file name" drop-down list to select the name of an installed package. 
Click on OK.
8。Delphi will prompt you whether you want to rebuild the modified package or not. 
9。Click on Yes. 
10.After the package is compiled, Delphi will show you a message saying that the new TSomeComponent component was registered and already available as part of the VCL. 
11.Close the package detail window, allowing Delphi to save the changes to it. 
12.The component is now available in the components palette. 
13.Drop the component on a form, and simply: use it. 
Tips:
1.In step 3, you can click on the Browse button to browse for the component (unit) 
2.In step 6, default package is "Borland User Components", there is no special need to alter this.

转自:http://blog.csdn.net/planetstar/article/details/653067


[转贴]基本安装
1、对于单个控件,Componet--> install component..--> PAS或DCU文件--> install;
2、对于带*.dpk文件的控件包,File--> Open(下拉列表框中选*.dpk)--> install即可;
3、对于带*.dpl文件的控件包,Install Packages--> Add--> dpl文件名即可;
4、如果以上Install按钮为失效的话,试试Compile按钮;
5、是run time lib则在option下的packages下的runtimepackes加之。
如果编译时提示文件找不到的话,一般是控件的安装目录不在Delphi的Lib目录中,有两种方法可以解决:
1、反安装的源文件拷入到Delphi的Lib目录下;
2、或者Tools--> Environment Options中把控件源代码路径加入到Delphi的Lib目录中即可。
注意:所安装的控件是否与你所用的Delphi版本相适应。

RxLib的安装
  首先在Delphi 5 的 IDE 中将以前版本的 Rxlib 反安装掉,删除 RXCTL5.BPL、RXDB5.BPL、 RXBDE5.BPL、DCLRX5.BPL、 DCLRXDB5.BPL 和DCLRXBD5.BPL。
  打开 Rx 的运行包 RXCTL5.DPK,在 Package 窗口中按 Compile 按钮编译 RXCTL5.DPK ,然后用同样方法编译另两个运行包RXDB5.DPK 和 RXBDE5.DPK ,将编译后的三个 BPL 文件放到搜索路径中,如 WINDOWS\SYSTEM等。
  在编译完运行包后你必须将 RX 的设计期包安装到 IDE 环境中。
  打开 Rx 的设计期包 DCLRX5.DPK,在 Package 窗口中按 Compile 按钮编译,然后按 Install按钮将设计期包注册到组件面板中。用同样的方法安装 DCLRXDB5.DPK 和 DCLRXBD5.DPK。
  注意:不要在 Delphi IDE 中保存包资源(package sources)!

转自:  

lovedata的回答


阅读(3619) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~