Yes they are, but (and it is a big one), they do contain special load/unload
stuff so that they have a seamless interface with any Delphi app that uses
them, unlike a dll.

e.g. 
If you have two dll's each with one form, the operator "is" fails because
both DLL's have their own system, sysutils, classes, controls and forms unit
etc. (The is operator relies on the address of the code for the class/VMT
etc.) This problem does not occur with packages.

Of course the disadvantage with a package, is that if you change the
interface, then any other package that relies on that package must be
re-compiled and redistributed - which is not necessarily the case with
DLL's.

I.e. You have exactly the same issues with design time packages in the IDE,
hence some of the odd behaviour with design time packages when developing
with them.

Myles.



-----Original Message-----
From: NIRAV KAKU [mailto:[EMAIL PROTECTED]]
Sent: Friday, 27 July 2001 7:16 a.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Changing forms to DLLs


I thought packages were dlls!

regards,
NIRAV KAKU

On 26 Jul 01, at 18:20, Myles Penlington wrote:

> Packages are a lot easier to use - read don't have the "hidden" issues
that
> DLL's have.
> Ie You could split your application into packages almost without any
> re-coding effort - which is not the case with DLL's.
> 
> You can dynamically load/unload packages as required - there used to be
demo
> of this somewhere ... (This is what the Delphi IDE does/can do).
> 
> Myles.


- From the Shreemat Bhägwat Gïta -
'Sarcasm is the lowest form of wit.'
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to