case VK_NUMPAD1:
AwesomeVar++; // <-- This is what I need help with *
}
return 0;

"AwesomeVar" is sitting within - int WINAPI WinMain ( ...

Could someone explain how exactly I would go about making the above hypothetical situation work?

07-23-2006

Desolation

Make it global.

07-24-2006

Mastadex

Make a variable global, then you can share it between functions.
But what I prefer doing is making either a struct or Class that has public variables in it that i use regularly, and then just pass around a pointer to that struct/class. Its much cleaner then using global variables.