I'm having problems with this, I need to cast an array of bytes from a VB6 ActiveX DLL reference method in a C# winform project.
the vb6 DLL would contain a method like
public function getArray() as byte() dim arr redim arr(0 to 100) getArray = arrend fuction
and then in .NET
myVBClass C = new myVBClass(); byte[] arr = (byte[])myVBClass.getArray();
But of course this isn't working.
How can I achieve this? Is it even possible? Should be done with strings?
Thanks in advance!