Click here to Skip to main content
15,914,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl9522-Sep-08 18:26
hxhl9522-Sep-08 18:26 
AnswerRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian22-Sep-08 21:04
professionalRajesh R Subramanian22-Sep-08 21:04 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl9523-Sep-08 18:39
hxhl9523-Sep-08 18:39 
GeneralRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian24-Sep-08 20:02
professionalRajesh R Subramanian24-Sep-08 20:02 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl9525-Sep-08 19:10
hxhl9525-Sep-08 19:10 
QuestionRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian25-Sep-08 20:53
professionalRajesh R Subramanian25-Sep-08 20:53 
AnswerRe: Converting virtual key codes to ASCII Pin
hxhl9526-Sep-08 7:04
hxhl9526-Sep-08 7:04 
AnswerRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian27-Sep-08 19:15
professionalRajesh R Subramanian27-Sep-08 19:15 
Virtual key code for caps lock key is VK_CAPITAL (0x14) - more here, just in case you need it: Virtual-Key codes[^].

You might want to know the status of shift key every time (you may use GetKeyState()[^]) for this, to check while the user is pressing keys like '['. If the shift was pressed, the actual character would be '{'. This applies if you are interested in the casing (upper/lower) of the characters typed.


hxhl95 wrote:
is it ok if i pass NULL to the uScanCode parameter


Yes, that shouldn't be a problem. I was going to write a small app for you, but then I'm a little unwell and taking some rest for 2 days. If I go for work tomorrow, then I'll do this for you. That will probably clear off all your doubts.

Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche

.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]

GeneralRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian30-Sep-08 20:21
professionalRajesh R Subramanian30-Sep-08 20:21 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl951-Oct-08 6:30
hxhl951-Oct-08 6:30 
GeneralRe: Converting virtual key codes to ASCII Pin
ShilpiP26-Jun-09 1:08
ShilpiP26-Jun-09 1:08 
QuestionWaitForSingleObject Behaviour question Pin
anthonym722-Sep-08 7:03
anthonym722-Sep-08 7:03 
AnswerRe: WaitForSingleObject Behaviour question Pin
Graham Bradshaw22-Sep-08 7:37
Graham Bradshaw22-Sep-08 7:37 
AnswerRe: WaitForSingleObject Behaviour question Pin
Mark Salsbery22-Sep-08 7:39
Mark Salsbery22-Sep-08 7:39 
AnswerRe: WaitForSingleObject Behaviour question Pin
James R. Twine22-Sep-08 7:42
James R. Twine22-Sep-08 7:42 
AnswerRe: WaitForSingleObject Behaviour question Pin
led mike22-Sep-08 7:46
led mike22-Sep-08 7:46 
GeneralRe: WaitForSingleObject Behaviour question Pin
anthonym722-Sep-08 8:32
anthonym722-Sep-08 8:32 
GeneralRe: WaitForSingleObject Behaviour question Pin
Bram van Kampen22-Sep-08 16:32
Bram van Kampen22-Sep-08 16:32 
QuestionSplitting header of column in list control. Pin
Sameer_Thakur22-Sep-08 4:08
Sameer_Thakur22-Sep-08 4:08 
QuestionRe: Splitting header of column in list control. Pin
led mike22-Sep-08 6:36
led mike22-Sep-08 6:36 
AnswerRe: Splitting header of column in list control. Pin
enhzflep22-Sep-08 12:36
enhzflep22-Sep-08 12:36 
GeneralRe: Splitting header of column in list control. Pin
Sameer_Thakur22-Sep-08 19:56
Sameer_Thakur22-Sep-08 19:56 
GeneralRe: Splitting header of column in list control. Pin
led mike23-Sep-08 5:02
led mike23-Sep-08 5:02 
Questiondebug issue when attaching to a process Pin
George_George22-Sep-08 3:13
George_George22-Sep-08 3:13 
QuestionRe: debug issue when attaching to a process Pin
Mark Salsbery22-Sep-08 5:33
Mark Salsbery22-Sep-08 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.