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