Pass arrays through interface

Hi,
I read that you can pass arrays through an interface from delphi to .net and vice versa.
But it seems to be with standard types like integer, byte, etc.
Is there a way to pass arrays of string, arrays of arrays of char or arrays of objects that I created?
I only need to do that from Delphi plugin to .net host.
Thanks!

Basically arrays that passed from .net to delphi is the PVarArray. So you need to work with this arrays on the Delphi side instead of regular arrays.

Take a look at this (http://connect.remobjects.com/discussion/585/how-to-transfer-array-of-string-array-of-record-and-array-of-interface-between-delphi-net) topic, there is a code that shows how to pass array of strings and interfaces.

The ‘arrays of arrays of char’ should look much like one that shown in the sample but of course you will need to adjust the code and use PVarArray as multidimensional array.

As for ‘arrays of objects’, you can’t just pas objects from Delphi to .net since they are not compatible, instead you need to use custom interfaces and pass an array of IDispatch in the way that is shown in the code from the above link.

Thanks, it works fine!