Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: out of memory error Pin
Le Ridder Noir19-Jan-05 22:48
Le Ridder Noir19-Jan-05 22:48 
GeneralRe: out of memory error Pin
Mike Dimmick20-Jan-05 2:16
Mike Dimmick20-Jan-05 2:16 
GeneralGetKeyState Pin
vidhyas19-Jan-05 21:03
vidhyas19-Jan-05 21:03 
GeneralRe: GetKeyState Pin
Neville Franks19-Jan-05 22:15
Neville Franks19-Jan-05 22:15 
GeneralRe: GetKeyState Pin
vidhyas19-Jan-05 22:19
vidhyas19-Jan-05 22:19 
GeneralRe: GetKeyState Pin
Neville Franks19-Jan-05 22:26
Neville Franks19-Jan-05 22:26 
GeneralRe: GetKeyState Pin
vidhyas19-Jan-05 22:40
vidhyas19-Jan-05 22:40 
GeneralRe: GetKeyState Pin
Neville Franks20-Jan-05 0:40
Neville Franks20-Jan-05 0:40 
You use the Virtual Key Code.

From WINUSER.H

/* VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39) */
/* VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A) */


So for 'a' or 'A' you would use GetKeyState( 'A' ). For F8 VK_F8 etc.

I don't understand why you are confused about this as it is quite clear in the docs: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/getkeystate.asp[^]

It is also easy enough to test this yourself with some simple sample code.

Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
GeneralRe: GetKeyState Pin
Anonymous20-Jan-05 2:45
Anonymous20-Jan-05 2:45 
Generalcdhtmldialog Pin
lirik19-Jan-05 19:47
lirik19-Jan-05 19:47 
GeneralRe: cdhtmldialog Pin
Neville Franks19-Jan-05 22:33
Neville Franks19-Jan-05 22:33 
GeneralVC7 IDE - Custom Document Editors Pin
peterchen19-Jan-05 19:17
peterchen19-Jan-05 19:17 
QuestionHow to detect the activity of specified device? Pin
ErisonWu19-Jan-05 18:51
ErisonWu19-Jan-05 18:51 
Generaltitle bar Pin
Member 2996919-Jan-05 18:04
Member 2996919-Jan-05 18:04 
GeneralRe: title bar Pin
namaskaaram19-Jan-05 18:19
namaskaaram19-Jan-05 18:19 
GeneralRe: title bar Pin
Member 2996919-Jan-05 20:07
Member 2996919-Jan-05 20:07 
GeneralRe: title bar Pin
toxcct20-Jan-05 2:19
toxcct20-Jan-05 2:19 
GeneralRe: title bar Pin
Garth Watkins19-Jan-05 20:34
Garth Watkins19-Jan-05 20:34 
GeneralRe: title bar Pin
Member 2996919-Jan-05 23:40
Member 2996919-Jan-05 23:40 
GeneralRe: title bar Pin
David Crow20-Jan-05 2:39
David Crow20-Jan-05 2:39 
Questionhow to code app to play internet radio Pin
don7cry19-Jan-05 16:44
don7cry19-Jan-05 16:44 
Generalraster to vector graphics Pin
ninpo19-Jan-05 16:34
ninpo19-Jan-05 16:34 
GeneralFTA Tool Help Pin
XiaoYu19-Jan-05 15:38
XiaoYu19-Jan-05 15:38 
QuestionHow to integrate C++ application with ASP.net web-application? Pin
webdevelopex19-Jan-05 15:34
webdevelopex19-Jan-05 15:34 
AnswerRe: How to integrate C++ application with ASP.net web-application? Pin
basementman20-Jan-05 4:31
basementman20-Jan-05 4:31 

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.