How to pass string as BSTR& from c# to c++ dll I am currently building a project that makes use of DllImport in C# to call a method in a C++ dll.