C
console kid
Hi,
I got a problem when I debugging set of statements like this.
The problem is how could I inspect the values that return from the
wsprintf ,which is passed
to the function TextOut as 4th argument.
I mean it executes the whole line as a one.I don't want this, how
could I break this
without storing it into a integer variable i and pass the i into the
TextOut,like this.
how can I do this without breaking that previous above line into two
like above?
--Thanks in Advance--
I got a problem when I debugging set of statements like this.
Code:
TextOut(hDc,24*cxChar,cyChar*(rect.bottom/cyChar-1),
szBuffer,
wsprintf(szBuffer,szFormat,message==WM_DRAWITEM?
TEXT("WM_DRAWITEM"):TEXT("WM_COMMAND"),
HIWORD(wParam),LOWORD(wParam),LOWORD(lParam),LOWORD(lParam)));
The problem is how could I inspect the values that return from the
wsprintf ,which is passed
to the function TextOut as 4th argument.
I mean it executes the whole line as a one.I don't want this, how
could I break this
without storing it into a integer variable i and pass the i into the
TextOut,like this.
Code:
i=wsprintf(szBuffer,szFormat,message==WM_DRAWITEM?
TEXT("WM_DRAWITEM"):TEXT("WM_COMMAND"),
HIWORD(wParam),LOWORD(wParam),LOWORD(lParam),LOWORD(lParam));
TextOut(hDc,24*cxChar,cyChar*(rect.bottom/cyChar-1),
szBuffer,
i);
like above?
--Thanks in Advance--