I tried VK_+ and '+' (along with the - counterpart) but neither works. What are the virtual key codes for the plus and minus signs? Thanks :D !
Printable View
I tried VK_+ and '+' (along with the - counterpart) but neither works. What are the virtual key codes for the plus and minus signs? Thanks :D !
VK_SUBTRACT and VK_ADD. Your compiler has no help files? Try MSDN for this kind of thing as well.
For instance, here.
Thanks.
Ahh, sorry. I meant the + and - used with the underscore and = keys next to backspace. And my compiler does not have anything regarding to it.
ummm... those would be the virtual codes for - and =, with a shift on the =
Hmm.....not on my computer :confused: .
>Hmm.....not on my compute
Yes, on every computer. Thats the point of the virtual key. confuted is correct. Check 'underscore' for 'minus' and then differentiate between the two by checking for 'SHIFT'. Same for 'plus', check 'equals' then check for 'shift'.
It couldn't be defined as VK_+ because it would think you are trying to add VK_ with something else. Did your compiler ask for a r-value?