Click here to Skip to main content
15,892,965 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A simple array question Pin
jmkhael2-Oct-02 6:07
jmkhael2-Oct-02 6:07 
GeneralHelp with fstream Pin
Sunnygirl2-Oct-02 4:23
Sunnygirl2-Oct-02 4:23 
GeneralRe: Help with fstream Pin
RedZenBird2-Oct-02 4:29
RedZenBird2-Oct-02 4:29 
GeneralGetKeyState() question Pin
dazinith2-Oct-02 4:14
dazinith2-Oct-02 4:14 
GeneralRe: GetKeyState() question Pin
Tomasz Sowinski2-Oct-02 4:38
Tomasz Sowinski2-Oct-02 4:38 
GeneralRe: GetKeyState() question Pin
dazinith2-Oct-02 5:20
dazinith2-Oct-02 5:20 
GeneralRe: GetKeyState() question Pin
adamUK2-Oct-02 5:38
adamUK2-Oct-02 5:38 
GeneralRe: GetKeyState() question Pin
Chris Richardson2-Oct-02 10:06
Chris Richardson2-Oct-02 10:06 
I would replace this:

BOOL bS = (GetKeyState(VK_ENTER) & 0x8000);


with this:

BOOL bS = (GetKeyState(VK_ENTER) & 0x10000000);



And yes, it does work with alphabetic characters, but you must use the upper case versions of the characters. Here's a comment 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) */


Chris Richardson
GeneralClistctrl and sorting in report view Pin
ns2-Oct-02 4:13
ns2-Oct-02 4:13 
GeneralRe: Clistctrl and sorting in report view Pin
Michael P Butler2-Oct-02 4:28
Michael P Butler2-Oct-02 4:28 
GeneralCString and 'type' question Pin
ns2-Oct-02 3:40
ns2-Oct-02 3:40 
GeneralRe: CString and 'type' question Pin
Tomasz Sowinski2-Oct-02 3:50
Tomasz Sowinski2-Oct-02 3:50 
GeneralRe: CString and 'type' question Pin
ns2-Oct-02 4:09
ns2-Oct-02 4:09 
GeneralRe: CString and 'type' question Pin
Tomasz Sowinski2-Oct-02 4:35
Tomasz Sowinski2-Oct-02 4:35 
GeneralRe: CString and 'type' question Pin
RedZenBird2-Oct-02 4:40
RedZenBird2-Oct-02 4:40 
GeneralRe: CString and 'type' question Pin
Chris Losinger2-Oct-02 5:25
professionalChris Losinger2-Oct-02 5:25 
GeneralWeird Memory Usage Pin
Chris Hambleton2-Oct-02 2:37
Chris Hambleton2-Oct-02 2:37 
GeneralRe: Weird Memory Usage Pin
Tomasz Sowinski2-Oct-02 2:47
Tomasz Sowinski2-Oct-02 2:47 
GeneralCListCtrl and multiselect question Pin
ns2-Oct-02 1:25
ns2-Oct-02 1:25 
GeneralRe: CListCtrl and multiselect question Pin
Tomasz Sowinski2-Oct-02 1:33
Tomasz Sowinski2-Oct-02 1:33 
Generalan observation Pin
ns2-Oct-02 1:39
ns2-Oct-02 1:39 
Generalmore questions Pin
ns2-Oct-02 1:46
ns2-Oct-02 1:46 
GeneralRe: an observation Pin
Tomasz Sowinski2-Oct-02 1:49
Tomasz Sowinski2-Oct-02 1:49 
GeneralRe: an observation Pin
ns2-Oct-02 1:54
ns2-Oct-02 1:54 

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.