jantimmerman wrote:
This does not explain though why it is allowed to say int test; in stdafx.h (which is included also in a lot of places)
It's because you're using precompiled headers. VC++ only compiles the header once, and just references it in all the other files that include it. If you turn off precompiled headers, you'll have the same problem there.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"