ADBlock is blocking some content on the site

ADBlock errore
Results found: 


From managed C++, I am calling an unmanaged C++ method which returns a double. How can I convert this double into a managed string?


I assume something like

(gcnew System::Double(d))->ToString()

If you like, leave us your opinion

Was the article helpful and is it translated correctly?


C++ is definitely not my strongest skillset. Misread the question, but this should convert to a std::string, not exactly what you are looking for though, but leaving it since it was the original post....

double d = 123.45;
std::ostringstream oss;
oss << d;
std::string s = oss.str();

This should convert to a managed string however..

double d = 123.45
String^ s = System::Convert::ToString(d);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow