SyntaxFix
Write A Post
Hire A Developer
Questions
You can easily do this as follows
#include <msclr/marshal_cppstd.h> System::String^ xyz="Hi boys"; std::string converted_xyz=msclr::interop::marshal_as< std::string >( xyz);