title: Marshalling C++ Char* In C#
body: <p>I'm working on NFC-4311E RFID tag reader. I need help marshaling this C++ call:</p>
  
  <pre><code>short OpenReader(HANDLE * hCom, unsigned char LinkType, char *com_port)
  </code></pre>
  
  <p>To C# code. I used this code:</p>
  
  <pre><code>[DllImport("Reader.dll", CharSet = CharSet.Unicode)]
  private unsafe static extern short OpenReader(ref IntPtr hWnd, byte linkType, StringBuilder ip)
  </code></pre>
  
  <p>I'm new in marshaling.</p>