Currently I have some code in C++ that makes callbacks to C# code. I pass in a function pointer (or a delegate in C#-speak) of a C# method into C++ and C++ just calls it whenever it needs to. Everything was fine until C++ had to pass an int array back to C# through the callback as an argument.
C# only sees the first element in the array and thinks that the array is of size 1. Is there any way to fix this? Any ideas?
Thanks in advance,
p.s. - sorry for double-posting... this is about C++/C# conversion and I wasn't sure if one board was better than the other for this question so I put it in both... could I suggest the creation of a board on the interoperations between C, C++ and C#? Or is the community for such a topic still too small to sustain a forum?