title: std::string in C#?
body: <p>I thought the problem is inside my C++ function,but I tried this</p>
  
  <p>C++ Function in C++ dll:</p>
  
  <pre><code>bool __declspec( dllexport ) OpenA(std::string file)
  {
  return true;
  }
  </code></pre>
  
  <p>C# code:</p>
  
  <pre><code>[DllImport("pk2.dll")]
  public static extern bool OpenA(string path);
  
      if (OpenA(@"E:\asdasd\"))
  </code></pre>
  
  <p>I get an exception that the memory is corrupt,why?</p>
  
  <p>If I remove the std::string parameter,it works great,but with std::string it doesnt work.</p>