Post by Lee BillowsCan 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