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?
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.
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).
Have a look at the Delphi Wiki on that topic: http://delphi.wikia.com/wiki/Creating_Packages Does it answer your question? If not, maybe, you should restate it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With