title: Converting C++ string/wchar_t* to C# string?
body: <p>Question: I need to call a C# dll from a C++ executable.
  I use COM, and it works fine for int, long and bool. But I can't get a string along...</p>
  
  <p>The IDL file says it's a BSTR, but I can't pass it correctly, and neither retrieve one.
  I tried using wchar_t* and using sysalloc as I did with VB6, but that doesn't seem to work.</p>
  
  <p>Anybody knows how, or what might be wrong ?</p>