These questions came up after reading Iczelion's Tutorials but will fit at any other forum:

Why does WndProc xor eax before it returns ? At the end of which procs should I really clear eax? Not the ones that I expect a return value from, obviously, but which ones?
Posted on 2002-05-21 12:50:53 by Jayrome
Those that need a return value of zero. :grin:
Posted on 2002-05-21 12:54:44 by bitRAKE
I know that. BTW, why not just use 'return 0'?
Posted on 2002-05-21 13:01:03 by Jayrome
'xor eax,eax' is shorter on bytes and sets flags?

'return 0' is a macro.

personal preferrence.
Posted on 2002-05-21 13:17:06 by bitRAKE
why not just use 'return 0'?

May be 'cause for some people here
33C0h is more clear than mystirious "return 0"
I've never heard of such an opcode for example.
Posted on 2002-05-21 13:29:32 by The Svin
btw the "return 0" is/should be done in DlgProc, not WndProc...
Posted on 2002-05-22 00:03:46 by f0dder