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