is it too late or i do not undestand something
-
i just copmiled those lines
...... CClientDC dc(this); OnPrepareDC(&dc); dc.SetPixel( point, RGB(0, 0, 0,) ); ......
what i've got is: ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped but this line contains more commaz that it needs:dc.SetPixel( point, RGB(0, 0, 0,) );
and it works any way do someone know why? -
i just copmiled those lines
...... CClientDC dc(this); OnPrepareDC(&dc); dc.SetPixel( point, RGB(0, 0, 0,) ); ......
what i've got is: ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped but this line contains more commaz that it needs:dc.SetPixel( point, RGB(0, 0, 0,) );
and it works any way do someone know why? -
i just copmiled those lines
...... CClientDC dc(this); OnPrepareDC(&dc); dc.SetPixel( point, RGB(0, 0, 0,) ); ......
what i've got is: ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped but this line contains more commaz that it needs:dc.SetPixel( point, RGB(0, 0, 0,) );
and it works any way do someone know why?RGB is a macro, so you should see what it expands to in order to see what is going on here. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
i just copmiled those lines
...... CClientDC dc(this); OnPrepareDC(&dc); dc.SetPixel( point, RGB(0, 0, 0,) ); ......
what i've got is: ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped but this line contains more commaz that it needs:dc.SetPixel( point, RGB(0, 0, 0,) );
and it works any way do someone know why?COLORREF SetPixel( int x, int y, COLORREF crColor ); COLORREF SetPixel( POINT point, COLORREF crColor ); these are the two overloaded functions of SetPixel. So your function call fits the second case and so it will work.
MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"
-
i just copmiled those lines
...... CClientDC dc(this); OnPrepareDC(&dc); dc.SetPixel( point, RGB(0, 0, 0,) ); ......
what i've got is: ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped but this line contains more commaz that it needs:dc.SetPixel( point, RGB(0, 0, 0,) );
and it works any way do someone know why?I think (I'm not sure :~ ) that the compiler will ignore everything that doesn't fit int the macro definition. So for example you can put everything you want after the last zero (if separated by a comma of course, otherwise it will be detected as a single 'variable'). So for example: this will compile:
dc.SetPixel( point, RGB(0, 0, 0, UnknowVariable) );
even if UnknowVariable is not declared. In fact, a macro is just a way to tell the compiler to replace a portion of text by another text just before the compilation... Hope this helps