最好找一本书来看,一般的书上都有的.翻译帮助可真麻烦..
package 包是一种特殊的动态连接库(DLL),可以被delphi应用程序和IDE使用,
它分为运行时库(runtime)和设计时库(design-time).设计时库用来在IDE中
安装component和给自定义component创建属性编辑器.有的包可以既是运行时
包也是设计时包,并且设计时包经常会调用运行时包.包可以用文件扩展名.bpl
与普通的动态连接库区分开来.
包包括了在运行时可以被应用程序共享的可执行代码,最常见的就是包含了
delphi常用组件的VCL40包.每创建一个新的工程时都可以指定是否使用这个包.
假如有一台机器使用了两个以上的delphi程序,而且都使用了包,那么这个机器
只要一份包的拷贝就可以了.
delphi附带了包括VCL40在内的一些封装了component的包,它们可以被应
用程序和IDE共享.
你可以创建自己的包.哎呀,太累了!下面就是E文了:
To create a package, follow the procedure below. Refer to Understanding the structure of a package for more information about the steps outlined here.
1 Choose File|New, select the Package icon, and click OK.
2 The generated package is displayed in the Package editor.
3 The Package editor shows a Requires node and a Contains node for the new package.
4 To add a unit to the contains clause, click the Add to package speed button. In the Add unit page, type a .PAS file name in the Unit file name edit box, or click Browse to browse for the file, and then
click OK. The unit you抳e selected appears under the Contains node in the Package editor. You can add additional units by repeating this step.
5 To add a package to the requires clause, click the Add to package speed button. In the Requires page, type a .DCP file name in the Package name edit box, or click Browse to browse for the file, and then
click OK. The package you抳e selected appears under the Requires node in the Package editor. You can add additional packages by repeating this step.
6 Click the Options speedbutton, and decide what kind of package you want to build.
To create a design-time杘nly package (a package that cannot be used at runtime), select the Designtime only radio button. (Or add the {$DESIGNONLY} compiler directive to the DPK file.)
To create a runtime-only package (a package that cannot be installed), select the Runtime only radio button. (Or add the {$RUNONLY} compiler directive to the DPK file.)
To create a package that is available at both design time and runtime, select the Designtime and runtime radio button.
7 In the Package editor, click the Compile package speed button to compile your package.
还是去找本书吧.想我这样好心的人可不多啊,多给我加点分吧,眼看着本月排名
直往下掉 :-(