   Why is TextOut() doing this?
At first I thought the problem was the string not having a null terminating character at the end but I made a console app and did everything the same except the output was using cout instead of TextOut.  I tried debugging it but the value of s was "0" so I'm not sure what the problem is. C++ windows api visual studio 2008 prof edvoid ScoreDisplay(HDC hdc, RECT* prc){std::stringstream ss;ss << g_iScore[0];std::string s(ss.str());SetBkColor(hdc, RGB(0, 0, 0));SetTextColor(hdc, RGB(255,0,0));TextOut(hdc, 200, 100, s.c_str(), 100);}g_iScore[0] has the value of 0.  It's an int.   
TextOut(hdc, 200, 100, s.c_str(), s.size());TextOut;  What is the TextOut function?It looks like you are using stringstream and string correctly.  The display acts like s.c_str() is not NULL-terminated, but it should be since c_str() is supposed to automatically append a NULL character at the end.EDIT: nevermind... Antheus beat me with facts =(-me   ;  Oh wow. Alright I feel dumb haha. Thanks a lot   