system string to windows string c++ code example Example: c++ cli convert string to string^ string str = "Here"; String^ Str = gcnew String(str.c_str());