Okay I normally program in c++ but the book I use to learn win32 is written in c. I've come across a couple of line that i don't understand, can someone please explain these to me.
The first one is:
Code:
int iLength;
TCHAR szBuffer[40];
iLength = (szBuffer, TEXT("The sum of %i and %i is %i"),  //i really don't get the %i part
                  iA, iB, iA + iB);
TextOut(hdc, x, y, szBuffer, iLength);
basically the only one that gets me is the i length = statment.

The other one is
Code:
wsprintf(szBuffer, TEXT("%5d"),  //i don't get the %5d part
Thanks for any help.