Deepness in the sky
Wednesday, May 30, 2007
C++: convert managed clr System::String^ to std::string
#include vcclr.h
System::String^ line = "a managed string";
pin_ptr
wch = PtrToStringChars( line );
int len = (( line->Length+1) * 2);
char *ch = new char[ len ];
wcstombs( ch, wch, len );
string lineStr = ch;
delete ch;
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Riyadh temperature by month
The difference between mild, medium, and mature Cheddar cheese
The difference between mild, medium, and mature Cheddar cheese is their age. Mild Cheddar - about 3 months of age medium Cheddar - about...
Tips for Uber users to save money
Subscribe to Uber One If you use Uber regularly for commuting, an Uber One membership can pay off. It costs 17 SAR/month (or 170 SAR/year) ...
Counties of Yorkshire and the Humber
See Regions of England