Hello,
I have one unmanaged DLL which has a function which requires a parameter void * &data which will be adapted by the function.
In the main program (which uses managed c++) I create a managed byte array with the following line:
array<System::Byte> ^ byteArray = gcnew array<System::Byte>(12589440);
The question is how can I convert the managed object "byteArray" to a pointer "void *"?
I've tried void * mPtr = &byteArray[0]; which does not work :-(
I've been searching a while, but I can't seem to find it.
Any comments are greatly appreciated!
Kristof