0
you can't use native vectors in managed code.
You can write a wrapper DLL in C++/CLI to copy data from the native heap to the managed heap (gcnew+pin_ptr+memcpy). If you prefer streaming your data you can implement a COM interface like IStream (declared in Windows SDK's Objidl.h) and refer to it as System::Runtime::InteropServices::ComTypes::IStream from managed code.
Suggested reading:
Native and .NET Interoperability
Interoperating with Unmanaged Code
Accepted 0
thank you for the suggestion i would go through them