ありがとうmarshaling library

無いわけはないのだけど、あるととっても助かる
C++/CLI: とある文字列の相互変換(コンバージョン) (1/4):CodeZine

#include <marshal_cppstd.h>
using namespace msclr::interop;


std::string s0 = "変換元の文字列";
System::String^ s1 = marshal_as<System::String^>(s0);
std::wstring s2 = marshal_as<std::wstring>(s0);