Quote:Original post by WinRad
Well that seems to make sense... Hmm but what if the macros I use are very long and specific and I only need them in one case? For example in my game I use a macro called Player1UpDef which is very specific and most likely would never be used by me again because I add def to the end of every #define macro.
Yes, then you're unlikely to get any name conflicts, so you're probably safe from that particular problem... But what did it buy you?
Why not just use the non-macro alternatives and be safe?
The point is that (almost) anything you do with macros, can be done as easily, and much much safer without them.
Quote:
Also I need to know the VK for the @ sign :).
As far as I know, all visible characters just use their ASCII code as VK.
A's virtual keycode is the integer value of 'A', and @'s is '@'.