Thanks Max, I would appreciate it..

Do you think it is usable for a plugin interface?, or should I stick with
DLL's?

Chris


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Max Renshaw-Fox
Sent: Sunday, 13 February 2000 21:51
To: Multiple recipients of list Delphi
Subject: RE: [DUG]: Can someone please help me with Dynamically loading
packages at runtime?


If you know someone with the BorCon98 CD there is some good stuff on there
about using packages in an application (load - unload issues).

The stuff on Borland.com, as I remember, isn't much chop - or more
specifically it's a hack.

If you get stuck - I can probably dig up some code from the play I had 12
months ago - might take a while to find it tho.

Max



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:owner-
To: Multiple recipients of list Delphi
Subject: [DUG]: Can someone please help me with Dynamically loading
packages at runtime?


I would like to know a few things about packages that you can load yourself
with the function LoadPackage.

1) How can I call a function in a package?
2) Can I have multiple packages with the same function name?

Has anyone got any simple samples of doing this?, or am I better to use
DLL's?

I want to implement a feature like Photoshop plugins into my program, I
already have it working using DLL's but packages might be better if they can
do the same thing, but without the problems of DLL's. DLL's can not take a
reference from the main form and use the AS keyword successfully.

Example:

Iterate in the DLL through a form in the main program looking for the
MainMenu. If I go if (Component[pos] is TMainMenu it will always return
false in a DLL, I believe now that packages will fix this, but I know
nothing about loading them up and even calling the functions.

Has anyone ever done this?

If so do you have any simple sample code?

Chris

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to