I tried VK_+ and '+' (along with the - counterpart) but neither works. What are the virtual key codes for the plus and minus signs? Thanks !
I tried VK_+ and '+' (along with the - counterpart) but neither works. What are the virtual key codes for the plus and minus signs? Thanks !
Last edited by Lurker; 10-06-2003 at 06:51 PM.
Do not make direct eye contact with me.
VK_SUBTRACT and VK_ADD. Your compiler has no help files? Try MSDN for this kind of thing as well.
For instance, here.
"There's always another way"
-lightatdawn (lightatdawn.cprogramming.com)
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.
Do not make direct eye contact with me.
ummm... those would be the virtual codes for - and =, with a shift on the =
Away.
Hmm.....not on my computer .
Do not make direct eye contact with me.
>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'.
"There's always another way"
-lightatdawn (lightatdawn.cprogramming.com)
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?