ascii text input using windows messages

Started by
2 comments, last by +AA_970+ 24 years, 2 months ago
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
Advertisement
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
thanx for the info
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

This topic is closed to new replies.

Advertisement