TCHAR szBuffer[40];
int iLength = wsprintf(szBuffer, TEXT("%i and %i is %i"),iA,iB,iA+iB);
TextOut(hdc,100,100,szBuffer,iLenght);
------------