title: How to convert array<System::Byte> to char* in C++ CLR?
body: <p>In my project, I pass a byte[] from C# to C++ CLR function. </p>
  
  <p>C++ CLR code:</p>
  
  <pre><code>void TestByteArray(array&lt;System::Byte&gt;^ byteArray)
  {
      ...
  }
  </code></pre>
  
  <p>C# code:</p>
  
  <pre><code>byte[] bytes = new byte[128];
  ...
  TestByteArray(bytes);
  </code></pre>
  
  <p>In the TestByteArray() function, I need convert byteArray to char*, so that I can used it in native C++ code. How can I do such conversion?</p>