Convert System::String to char* char* ConvertStringToChar( String^ str) { using namespace Runtime::InteropServices; IntPtr p = Marshal::StringToHGlobalAnsi(str); return static_cast<char*>(p.ToPointer()); } Convert char* to…
Convert System::String to char* char* ConvertStringToChar( String^ str) { using namespace Runtime::InteropServices; IntPtr p = Marshal::StringToHGlobalAnsi(str); return static_cast<char*>(p.ToPointer()); } Convert char* to…