Discussion:
Can I use dynamic array in Delphi DLL and used it with DELPHI ?
(too old to reply)
Lee Billows
2008-07-20 13:09:02 UTC
Permalink
Can I use dynamic array in Delphi DLL and used it with DELPHI ?
--
Lee Billows
-------------------------
www.ezprog.com
code -> flowchart -> Visio
Peter Below (TeamB)
2008-07-21 17:53:34 UTC
Permalink
Post by Lee Billows
Can I use dynamic array in Delphi DLL and used it with DELPHI ?
If you want to pass a dynamic array from a host application to a DLL or
back both modules need to use the same memory manager. You can achieve
that by either using the ShareMem unit on both sides (or SimpleShareMem
if you are using a recent version of Delphi), or you can build host exe
and DLL with run-time packages, using the core RTL and VCL packages
(the rtl package contains the memory manager). Using packages is also
the only reliable way to share object references between modules.
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
Lee Billows
2008-07-22 13:03:16 UTC
Permalink
Thanks!
Post by Peter Below (TeamB)
Post by Lee Billows
Can I use dynamic array in Delphi DLL and used it with DELPHI ?
If you want to pass a dynamic array from a host application to a DLL or
back both modules need to use the same memory manager. You can achieve
that by either using the ShareMem unit on both sides (or SimpleShareMem
if you are using a recent version of Delphi), or you can build host exe
and DLL with run-time packages, using the core RTL and VCL packages
(the rtl package contains the memory manager). Using packages is also
the only reliable way to share object references between modules.
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
http://www.tamaracka.com/search.htm
http://groups.google.com
Loading...