error C3867: 'std::vector<_Ty>::size': function call missing argument list; use '&std::vector<_Ty>::size' to create a pointer to member
error C2446: '<=' : no conversion from 'int' to '__w64 unsigned int (__thiscall std::vector<_Ty>::* )(void) const'
error C2296: '<=' : illegal, left operand has type '__w64 unsigned int (__thiscall std::vector<_Ty>::* )(void) const'
void chatDisplay::setText()
{
std::vector<std::string> ChatLog;
// Make static so memory is not allocated every frame.
sprintf(buffer2, "Chat: %s\n", ChatBuffer.c_str());
int bottom;
if(md3dPP.Windowed)
bottom=md3dPP.BackBufferHeight-20;
else
bottom=GetSystemMetrics(SM_CYSCREEN)-20;
RECT Rc = {5, bottom, 0, 0};//rec top should be screensize minus number, check if full or window
HR(mGfxStats->mFont->DrawTextA(0, buffer2, -1, &Rc, DT_NOCLIP, D3DCOLOR_XRGB(0,0,0)));
//chat log
for(int x=0;x<ChatLog.size();x++)
{
sprintf(buffer2, "%s", ChatLog[x].c_str());
RECT Rc = {5,(x*-20)+(bottom-20), 0, 0};
HR(mGfxStats->mFont->DrawTextA(0, buffer2, -1, &Rc, DT_NOCLIP, D3DCOLOR_XRGB(0,0,0)));
}
}
*edit: please use code tags in the future, thanks!
This post has been edited by Martyr2: 28 March 2009 - 08:28 PM

New Topic/Question
Reply




MultiQuote





|