So I'm trying to call a function that is a manged wrapper around an OCX object. Having great difficulty. Function is;
foo(System::Object ^% theBuffer)
where 'theBuffer' is an array of bytes. The template for the unmanaged OCX which 'foo' wraps is
goo(VARIANT* theBuffer);
So I've tried;
System::Int32 buf[10];
foo(buf);
which fails. And
Bitmap ^b;
foo(b);
which compiles but obviously the called function is not going to create a .NET bitmap for me.
So I guess the question is how do I pass this function a block of memory it can write to and then get access to it back in .NET world.
Thanks