Hi, I have an application which uses C# front end and a C++ DLL as the backend. I am trying to pass an array from C# code to the C++ code in the DLL which changes the values in that array. But when I try to retrieve the values of the array from C# code after the call is made to the C++ DLL function, the changes are not being reflected. I want the changes to be reflected. Please help me in this regard.
Thanks, Rakesh.
The following are the signatures of the functions that I am using.
In C#:
testStruct(structs, len);
structs is the array of structures that I am passing.
In C++:
extern "C" __declspec(dllexport) void __cdecl testStruct(structure1* arrStruct, int len)
arrStruct is the array of structures which receives the ones passed from C#.