Hi,
there are a couple of things that can
go wrong here:
1.) Is it a IN or OUT parameter, e.g. does
the function write to the pointer or does it
expect something to go in to the function?
2) which implies that the byte[] size is unknown.
So the questions are the following. Do you
expect something from the function written
back to the pointer or does the function expect
a ready filled array to operate on it?
Depending on your answer we will find a
appropriate solution for you,...
Regards
Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project:
http://www.codeplex.com/restarts
Latest Open-Source Projects:
http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Pramod" <ip*****@gmail.comschrieb im Newsbeitrag
news:e8**********************************@x16g2000 prn.googlegroups.com...
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