Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Clear text from a device context. Pin
Mr Simple13-Dec-07 6:33
Mr Simple13-Dec-07 6:33 
GeneralRe: Clear text from a device context. Pin
Mark Salsbery13-Dec-07 7:44
Mark Salsbery13-Dec-07 7:44 
GeneralRe: Clear text from a device context. Pin
Mr Simple14-Dec-07 1:22
Mr Simple14-Dec-07 1:22 
GeneralRe: Clear text from a device context. Pin
Mark Salsbery14-Dec-07 4:47
Mark Salsbery14-Dec-07 4:47 
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 
George_George wrote:
I do not understand how this statement works,

(Foo( &counter ), counter);


Both I and toxcct gave an answer to the above.



George_George wrote:
I have tested that the simple statement (without comment) also works.

Of course.


George_George wrote:
What is the benefit and function to add , and counter in macro definition?

The difference stands in the returned value of the expression, for instance
void Foo (int* input)
{
	*input = 100;

	return;
}

#define GETFOO  (Foo( &counter ), counter)
void main()
{
int i = GETFOO;
}

will assign 100 to i.

Anyway that way of coding is simply junk.

Big Grin | :-D

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.


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 

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.