Home »» Delphi [Programming]
Thread Profile: Need help with GUI plugin
Need help with GUI plugin
You can't pass class references to DLL's. That is a limitation. You have to use packages for full interoperability. This means compiling with the runtime packages option. That means your product has to make sure all packages needed (including Borland's) are on the users system.
Dave
doughale (AT) xmission (DOT) com wrote:
All of my attempts to do a GUI plugin with Delphi have failed so I am asking
your help.
I have a main EXE that has a form. There is an area on this form that is
reserved for plugins. The plugins are DLLs written in delphi also. The DLLs
export an API that returns a Class Reference (class of TSomeClass). The EXE
locates the plugins, calls LoadLibrary and then GetProcAddress to get the
exported API. The EXE then calls the class references Create function with
the local form to be the owner, and a local control to be the parent. The
DLLs create function creates controls and places them on the "Parent"
passed in.
All goes well except the controls donot appear on the EXEs form.
Note: ShareMem is the first unit in the uses clause of both the EXE and the
DLL.
If someone can help me fix this problem, I will publish the framework for
everyone else to use.
Thanks
Doug
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
SPNSRED LINKS
C programming language Computer programming languages Java programming language The c programming language C programming language Concept of programming language
YAH! GRUPS LINKS
Visit your group "delphi-en" on the web.
To unsubscribe from this group, send an email to:
delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
Home is just a click away.* Make Yahoo! your home page now.
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Yahoo! Groups Links
<*To visit your group on the web, go to:
<*To unsubscribe from this group, send an email to:
delphi-en-unsubscribe (AT) yahoogroups (DOT) com
<*Your use of Yahoo! Groups is subject to:
Dave
doughale (AT) xmission (DOT) com wrote:
All of my attempts to do a GUI plugin with Delphi have failed so I am asking
your help.
I have a main EXE that has a form. There is an area on this form that is
reserved for plugins. The plugins are DLLs written in delphi also. The DLLs
export an API that returns a Class Reference (class of TSomeClass). The EXE
locates the plugins, calls LoadLibrary and then GetProcAddress to get the
exported API. The EXE then calls the class references Create function with
the local form to be the owner, and a local control to be the parent. The
DLLs create function creates controls and places them on the "Parent"
passed in.
All goes well except the controls donot appear on the EXEs form.
Note: ShareMem is the first unit in the uses clause of both the EXE and the
DLL.
If someone can help me fix this problem, I will publish the framework for
everyone else to use.
Thanks
Doug
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
SPNSRED LINKS
C programming language Computer programming languages Java programming language The c programming language C programming language Concept of programming language
YAH! GRUPS LINKS
Visit your group "delphi-en" on the web.
To unsubscribe from this group, send an email to:
delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
Home is just a click away.* Make Yahoo! your home page now.
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Yahoo! Groups Links
<*To visit your group on the web, go to:
<*To unsubscribe from this group, send an email to:
delphi-en-unsubscribe (AT) yahoogroups (DOT) com
<*Your use of Yahoo! Groups is subject to:
- 0Answer
- Total