Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Clear text from a device context. Pin
Mr Simple14-Dec-07 6:58
Mr Simple14-Dec-07 6:58 
GeneralRe: Clear text from a device context. Pin
Mark Salsbery14-Dec-07 8:52
Mark Salsbery14-Dec-07 8:52 
GeneralRe: Clear text from a device context. Pin
Mr Simple16-Dec-07 22:12
Mr Simple16-Dec-07 22:12 
GeneralRe: Clear text from a device context. Pin
Mark Salsbery17-Dec-07 5:50
Mark Salsbery17-Dec-07 5:50 
GeneralRe: Clear text from a device context. Pin
Mr Simple19-Dec-07 2:08
Mr Simple19-Dec-07 2:08 
GeneralRe: Clear text from a device context. Pin
Mark Salsbery19-Dec-07 6:14
Mark Salsbery19-Dec-07 6:14 
GeneralRe: Clear text from a device context. Pin
led mike12-Dec-07 7:47
led mike12-Dec-07 7:47 
GeneralRe: Clear text from a device context. Pin
Mark Salsbery12-Dec-07 7:58
Mark Salsbery12-Dec-07 7:58 
GeneralRe: Clear text from a device context. Pin
Nelek12-Dec-07 3:14
protectorNelek12-Dec-07 3:14 
QuestionUsing SendVirtualKey method? Pin
Benny_Lava12-Dec-07 1:03
Benny_Lava12-Dec-07 1:03 
GeneralMulti column combo box Pin
panthal12-Dec-07 0:33
panthal12-Dec-07 0:33 
QuestionRe: Multi column combo box Pin
Mark Salsbery12-Dec-07 6:33
Mark Salsbery12-Dec-07 6:33 
GeneralRe: Multi column combo box Pin
David Crow13-Dec-07 4:52
David Crow13-Dec-07 4:52 
GeneralRe: Multi column combo box Pin
Mark Salsbery13-Dec-07 5:49
Mark Salsbery13-Dec-07 5:49 
Questionhow the macro works Pin
George_George12-Dec-07 0:03
George_George12-Dec-07 0:03 
AnswerRe: how the macro works Pin
CPallini12-Dec-07 0:35
mveCPallini12-Dec-07 0:35 
GeneralRe: how the macro works Pin
George_George12-Dec-07 0:45
George_George12-Dec-07 0:45 
GeneralRe: how the macro works Pin
CPallini12-Dec-07 1:56
mveCPallini12-Dec-07 1:56 
GeneralRe: how the macro works Pin
George_George12-Dec-07 2:03
George_George12-Dec-07 2:03 
GeneralRe: how the macro works Pin
toxcct12-Dec-07 2:12
toxcct12-Dec-07 2:12 
JokeRe: how the macro works Pin
CPallini12-Dec-07 2:23
mveCPallini12-Dec-07 2:23 
GeneralRe: how the macro works Pin
toxcct12-Dec-07 2:30
toxcct12-Dec-07 2:30 
JokeRe: how the macro works Pin
CPallini12-Dec-07 2:44
mveCPallini12-Dec-07 2:44 
GeneralRe: how the macro works Pin
toxcct12-Dec-07 2:48
toxcct12-Dec-07 2:48 
AnswerRe: how the macro works [modified] Pin
toxcct12-Dec-07 0:50
toxcct12-Dec-07 0:50 
the , operator returns the last of its statements.
here, the macro calls the Foo function, to which the counter variable is passes by pointer (so, the counter variable is modified from within the Foo() function, but its modifications are still visible from the caller).
then, the counter variable is return (and as there is no = operator in the instruction GETFOO;, the returned value is not used, but still the counter variable is assigned with 100.

writing GETFOO; here is as if you were doing Foo(&counter);

BTW, this is very awful coding, and you should never use such macros !

and to finish, a question: how old are you ?


modified on Wednesday, December 12, 2007 8:01:42 AM

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.