Hi.
I have a C++ method which accepts - byte* - and I am calling this
method from a C# application. I have created a byte[] to pass by ref.
This is how I call the C++ method:
Method(ref byteArray);
However, this results in following error:
Cannot convert 'ref byte[]' to 'ref byte'
Here is my C++ method declaration:
Method(byte* byteData);
Please let me know how do I pass the byte[] to this method.
Thanks in advance,
PSI
I have a C++ method which accepts - byte* - and I am calling this
method from a C# application. I have created a byte[] to pass by ref.
This is how I call the C++ method:
Method(ref byteArray);
However, this results in following error:
Cannot convert 'ref byte[]' to 'ref byte'
Here is my C++ method declaration:
Method(byte* byteData);
Please let me know how do I pass the byte[] to this method.
Thanks in advance,
PSI
Comment