My main program is written in C++/CLI (managed). The API for some of my hardware is contained in a .C file. From my main program I call the main() for the unmanaged c code which creates an array and works with the hardware. Once completed it disconnects from the hardware, frees the memory, and returns to the C++/CLI program.
What would be a good way to access (copy) that array from the unmanaged c code to the managed c++?