converting a String* to a std::string
in the .net enviroment is it possible to convert a String* to a std::string
i need to do it so i can do an ofstream
if anybody could help me i would appreciate it
it's possible but ugly...
warned you it wasn't pretty!!
String dotNetString;std::string cppString(static_cast<char*>(Marshal::StringToHGlobalAnsi(dotNetString).ToPointer()));
warned you it wasn't pretty!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement