I am little confused whether we can use _bstr_t to pass string between c# to C++ and vice versa.
I am using C++/CLI as intermediate layer between C# and C++.
If possible also give example how to marshal it at C# end and C++/CLI end as there are not much documentation around that
Also suggest better data type/ mechanism to pass string.
According to MSDN, this should work for converting String^ to string (and it's the easiest way by far). However I cannot test, my VC++2008 Express doesn't find Marshal.h...