Hello,
I trying to write a software in C# that make calls in a .dll wrote in Delphi.
Im trying to call this method (wrote in delphi):
-------------
Function Recebe_Cartao (var Matriz : array [ 1..721 ] of char) : boolean
-------------
In my C# code, I declare like this:
---------------
[DllImport("[login to view URL]", CharSet = [login to view URL])]
public static extern bool Recebe_Cartao( char[][] data);
---------------
The problem is when I call in C# this method in my console application:
------------
Recebe_Cartao(RetornoMatriz);
-------------
I get an error: Cannot marshal 'parameter #1': There is no marshaling support for nested arrays.
I found a solution in: [login to view URL] but I still dont know how to fix my code.
You can download my project in: [login to view URL]
Main objective: I need loop through all values of RetornoMatriz array.
Thanks
Marcelo