右键点击工具栏,添加desktops工具栏,设置好你的IDE环境后可以保存成一个.dst文件dpk文件是package文件,编译后可以生成bpl包文件!
解决方案 »
- 多进程插入Access数据库
- 请教获取网络时间的实现方法
- Delphi怎样获取显卡芯片的型号信息
- 怎样保存图片到文件夹啊?
- wininet的internetopenurl如何打开一个ftp文件
- 我写聊天程序接收消息有问题贴上源码请高手指教!
- PopupMenu的使用问题?
- 如何在BDE的Query中使用Sybase的数据类型转换函数
- 大家猜猜,公司给我的礼物是什么
- Firemonkey下Chromium嵌入的网页,输入框禁用ime,无法输入中文,如何解决?
- 在线等请叫一个数据库问题(一个初学者),就是我的数据库能运行,可添加成员时出来错误,请看错误,proiect在正文
- 请问大家上新闻组都用的什么软件? :)
Ordinarily, packages are loaded statically when an applications starts. But you can use the LoadPackage and UnloadPackage routines (in the SysUtils unit) to load packages dynamically.Note: When an application utilizes packages, the name of each packaged unit still must appear in the uses clause of any source file that references it.Each package is declared in a separate source file, which should be saved with the .DPK (Delphi package) extension to avoid confusion with other files containing Object Pascal code. A package source file does not contain type, data, procedure, or function declarations. Instead, it containsA name for the package.
A list of other packages required by the new package. These are packages to which the new package is linked.
A list of unit files contained by, or bound into, the package when it is compiled. The package is essentially a wrapper for these source-code units, which provide the functionality of the compiled BPL.A package declaration has the formpackage packageName; requiresClause;
containsClause;
end.where packageName is any valid identifier. The requiresClause and containsClause are both optional. For example, the following code declares the VCLDB50 package.package VCLDB50; requires VCL50;
contains Db, Dbcgrids, Dbctrls, Dbgrids, ... ;
end.The requires clause lists other, external packages used by the package being declared. It consists of the directive requires, followed by a comma-delimited list of package names, followed by a semicolon. If a package does not reference other packages, it does not need a requires clause.
The contains clause identifies the unit files to be compiled and bound into the package. It consists of the directive contains, followed by a comma-delimited list of unit names, followed by a semicolon. Any unit name may be followed by the reserved word in and the name of a source file, with or without a directory path, in single quotation s; directory paths can be absolute or relative. For example,contains MyUnit in 'C:\MyProject\MyUnit.pas';Note: Thread-local variables (declared with threadvar) in a packaged unit cannot be accessed from clients that use the package.