ascii text input using windows messages
hi, when i try to do something like "case VK_A: ...."
using the windows messaging stuff the VC++ dosen't recognize VK_A. Am i missing an include file or library or something???
By the way, things like VK_ESCAPE, VK_CONTROL, VK_F9, etc. works.
Edited by - +AA_970+ on 2/25/00 8:43:40 PM
Edited by - +AA_970+ on 2/25/00 9:04:53 PM
Use the ascii values for a-z, A-Z and 0-9 for those keys, there are no defines set for them (though you could set some up yourself quite easily).
Good luck
Starfall
Good luck
Starfall
In case you didn''t know (although you probably do), to be safer and more clear in your code, instead of using the ascii values you can use single quotes around the letter. For example:
case ''a'':
Just a suggestion in case you didn''t know
------------------------------
Jonathan Little
invader@hushmail.com
http://www.crosswinds.net/~uselessknowledge
case ''a'':
Just a suggestion in case you didn''t know
------------------------------
Jonathan Little
invader@hushmail.com
http://www.crosswinds.net/~uselessknowledge
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement