Advertisement

Setting up a Console

Started by May 10, 2003 05:21 PM
1 comment, last by cippyboy 21 years, 9 months ago
I`m coding right now a Console and I`ve come across some problems 1)what`s the value/vritual key for the "`" ? "`" or "~" don`t work...? 2)How can I distinguish UpperCase from LowerCase from the char(wParam)(I use that for printing text...?)should I use lParam or something ? 3)by sprintf()-ing a char[size], does it reset it ? like all of it becomes full of '' '' even if you put a single ''>'' ? 4)char(wParam) seems imperfect...works just for numbers and letters...no +/-/;/''/]/[/(/) etc(symbols usually)

Relative Games - My apps

1) off my head, 190. I''ll check that later

2) check if the shift key is down (VK_SHIFT). If the character is betten A and Z, add (''a''-''A'')

3) I''m not sure I get your question. but, anyway, when you use C strings, the final character must be the value 0, or ''\0'', (the null terminator) which indicates the end of the string, otherwise it keeps reading on till it bumps into one. Not sure if thats your problem though.

4) when that is the case (not otherwise) use MapVirtualKey(keyCode,2);

| - Project-X - my mega project.. close... - | - adDeath - | - email me - |
Advertisement
192 not 190. sorry

| - Project-X - my mega project.. close... - | - adDeath - | - email me - |

This topic is closed to new replies.

Advertisement