std::stringstream s; s << "Your number is " << 5; CString output = s.str(); TEXTOUT(100, 100, output);