组件包-在哪里划分运行时,设计时,注册等 [英] Component package - where to divide runtime, designtime, registration, etc

查看:51
本文介绍了组件包-在哪里划分运行时,设计时,注册等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建要安装的组件时,我知道注册单元通常是应该分开的东西,但是什么时候应该将组件安装分为两个单独的包(通常是软件包)的准则是什么?

In building components for installation, I know that registration units are generally a "should be separate" thing, but what are the guidelines for when one should divide the component installation into two separate packages (typically one being runtime, and the other being design time).

奖金问题:当运行时和设计时软件包分开时,可接受的软件包命名约定是什么?

Bonus question: What are the accepted package naming conventions, for when runtime and designtime packages are separate?

推荐答案

在IDE中使用的所有特定内容,例如与设计人员,对象检查器(属性编辑器...)或组件进行交互注册(图标,调色板信息...)应放入设计时套件中,通常以dcl作为前缀。

Anything that is specific to use within the IDE like interacting with the designers, the object inspector (property editors...) or the components registration (icon, palette info...) should go into a design-time package, usually prefixed by dcl.

使用应用程序中组件的最低要求就是运行时包。运行时程序包中禁止引用设计单元。

Anything else that is the minimum necessary to use the components in an application goes into the run-time package. Any reference to the Design units are forbidden in the run-time package.

通常将编译器版本号作为设计时和运行时程序包的后缀:dclMyPackage120.bpl和MyPackage120.bpl(对于D2009版本20.0)编译器并设置了定义VER200;对于D2007,它是10.5版,并且由于二进制兼容性而混合使用* 100.bpl和* 105.bpl)。

It is common to have the compiler version number as a suffix to both design-time and runtime package: dclMyPackage120.bpl and MyPackage120.bpl (for D2009 which is version 20.0 of the compiler and sets the define VER200; for D2007 it was version 10.5 and a mixed bag of *100.bpl and *105.bpl thanks to binary compatibility).

这篇关于组件包-在哪里划分运行时,设计时,注册等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆