0

I have byte[] in C#. I want to pass this value to C++ (CLR). How to do it ?

I have tried converting the byte[][] to char[][] in C#.

Now Is it possible to use this char** variable in C++? If it is not, what I need to use ?

EDIT:

I want the output in character buffer in C++ code.

My Existing code can be found at Passing objects between C# library and C++ (CLR)

Community
  • 1
  • 1
Dineshkumar
  • 1,468
  • 4
  • 22
  • 49
  • `char[][]` is not the same as `char**`. `char**` is a pointer to a pointer while `char[][]` is an array of `char`. ( Which is similar to a pointer in most aspects. ) Take a look here : http://stackoverflow.com/questions/9460260/what-is-the-difference-between-char-a-string-and-char-p-string – olevegard Feb 12 '14 at 09:57
  • @olevegard I do understand the concepts, but how to transfer byte[] from C# to C++? – Dineshkumar Feb 12 '14 at 10:10
  • Is this C++ calling C# or C# calling C++? – cup Feb 12 '14 at 10:42
  • @cup c# returns byte[] I want to use it in C++ – Dineshkumar Feb 12 '14 at 10:51
  • 1
    What is your method of interprocess communications? – DavidO Feb 12 '14 at 15:42
  • @DavidO Please check this.. http://stackoverflow.com/questions/21719142/passing-objects-between-c-sharp-library-and-c-clr/21719310 – Dineshkumar Feb 13 '14 at 05:57

0 Answers0