Thanks, I've found the cause for my problems. I have registered the
class, but I didn't set my app to compile with the use Run-Time
libraries directive.

Fixed that, and it all works beautifully.

Thanks,
Assaf.

-----Original Message-----
From: sllimr7139 [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 25, 2005 5:06 AM
To: [email protected]
Subject: [delphi-en] Re: Can't import a class from a dynamically loaded
BPL


Hi,

I don't think it's a matter of not being able to import a class from the
loaded BPL as much as it probably hasn't been registerd properly with
the RTL system.

I do something similar in a plugin architecture that I've developed
using runtime packages.  

What I've done to get around this type of problem is that I have a
single global unit that has a number of "helper" functions that both the
main application and the plugin packages know about.

One of these functions is RegisterPlugin and the plugins call this
themselves after they've been initialized and they pass in the plugin
object information.  I use Interfaces and not classes but I don't think
that should make a lot of difference.

So when the runtime library is loaded I call one of the global helper
routines to provide the proper information regarding the plugin and
before the package is unloaded I call another helper routine to remove
and clean up the necessary information.

Once the information is registered with the global routines then I have
access to those objects via the helper routines.

Does that make sense?

Ryan.





-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links



 



 This mail arrived via mail.pineapp.net
 
************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to