X
xxx
Hi all, i'm new in visual c++ and i'm having troubles converting types.
Let me explain: i have an unmanaged c++ function that wants an float*
parameter but i have an array<float>^, how i can covert it?
the following code doesn't show up any error during compile time but
crashes at runtime telling "unrecognized or unsupported array type":
array<float>^ vals = gcnew array<float>(dimension);
pin_ptr<float>ss=&vals[0];
unmanaged_function(ss);
TIA
Let me explain: i have an unmanaged c++ function that wants an float*
parameter but i have an array<float>^, how i can covert it?
the following code doesn't show up any error during compile time but
crashes at runtime telling "unrecognized or unsupported array type":
array<float>^ vals = gcnew array<float>(dimension);
pin_ptr<float>ss=&vals[0];
unmanaged_function(ss);
TIA