My question carries forward the issue from cli/C++ how to define cli::array with unmanaged type element?
I understand that to create a managed array with an unmanaged type, I need to supply its pointer so.
array<UserType*>^ args=gcnew array<UserType*>(2);
Now if I want to send this array to a native function expecting a const UserType*
parameter, how do I go about it?