Re:TJvPlugin public properties / methods are not accessible
"Andrew Baylis" <[email protected]> Wed, 21 Feb 2007 18:05:40 +1100
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <000901c75586$b5a27510$0501010a@DEVELOPMENT> |
Hi,
Firstly, it depends on whether you are using it from a DLL or a Package. A
package would allow you some access via the RTTI for published properties. A
DLL only allows access to exported functions or if you type cast the plugin
in your main App, you may be able to get access to the public functions -
note that i) your main app will need to have the correct class definition
somewhere in its used units and and explicit type cast would be needed
unless all you want are the base functions of TJvPlugin. There are a number
of hassles with DLL plugins and passing objects as you will usually have two
copies of the RTL and hence two 'versions' of TObject etc.
My approach to using plugins from a DLL is to explicitly define Interfaces
and call these (I've modified the base class to expose an ICommunicator
interface which acts as a base Interface for communicating between plugin
and main app).
Good luck with your project,
Andrew
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/i7folB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphi-JEDI/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/Delphi-JEDI/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> 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/