You can make such a conversion using
StringToHGlobalAnsi()[
^] method of the
Marshal
class. See the example from the documentation of this method, it does
exactly such conversion.
Alternatively
CString
class provides a constructor which takes argument of type
System::String^
. :)
Regards