Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Prob. to catch the EOF ?! Pin
Joaquín M López Muñoz15-May-02 5:17
Joaquín M López Muñoz15-May-02 5:17 
GeneralMultithreading in C++ without MFC Pin
15-May-02 3:19
suss15-May-02 3:19 
GeneralRe: Multithreading in C++ without MFC Pin
Prem Kumar15-May-02 3:45
Prem Kumar15-May-02 3:45 
GeneralRe: Multithreading in C++ without MFC Pin
Nish Nishant15-May-02 3:51
sitebuilderNish Nishant15-May-02 3:51 
GeneralRe: Multithreading in C++ without MFC Pin
Tim Smith15-May-02 4:45
Tim Smith15-May-02 4:45 
QuestionHow can I get and set the keyboard state? Pin
Edwin Geng15-May-02 2:11
Edwin Geng15-May-02 2:11 
AnswerRe: How can I get and set the keyboard state? Pin
Chris Losinger15-May-02 6:46
professionalChris Losinger15-May-02 6:46 
GeneralRe: How can I get and set the keyboard state? Pin
Edwin Geng16-May-02 6:20
Edwin Geng16-May-02 6:20 
Thank you for your replay.

My scenario is:
When message WM_HOTKEY is received, I repeatedly checks keyboard state until no key is pressed. If my program is in the foreground, GetKeyState() cannot work well. Now I has to create a worker thread to check it.

Now I has another question:
GetKeyState() should return a SHORT value which is a 16-bit integer, and only the low byte is significant. If the specific key is pressed, it returns "FF81" or "FF80". Are you sure the above code segment can work well?
GeneralRe: How can I get and set the keyboard state? Pin
Chris Losinger16-May-02 6:42
professionalChris Losinger16-May-02 6:42 
GeneralAnd now,something completely different Pin
nikoladsp15-May-02 1:26
nikoladsp15-May-02 1:26 
GeneralRe: And now,something completely different Pin
Nish Nishant15-May-02 1:50
sitebuilderNish Nishant15-May-02 1:50 
GeneralWow,it is working!! Pin
nikoladsp19-Jun-02 23:13
nikoladsp19-Jun-02 23:13 
GeneralDeviceIOControl for parallel port Pin
nafiton15-May-02 1:21
nafiton15-May-02 1:21 
GeneralRe: DeviceIOControl for parallel port Pin
jan larsen15-May-02 3:31
jan larsen15-May-02 3:31 
GeneralSetting Current Directory Pin
Andy Latham15-May-02 0:40
Andy Latham15-May-02 0:40 
GeneralRe: Setting Current Directory Pin
Nish Nishant15-May-02 1:12
sitebuilderNish Nishant15-May-02 1:12 
GeneralRe: Setting Current Directory Pin
Prem Kumar15-May-02 2:27
Prem Kumar15-May-02 2:27 
GeneralRe: Setting Current Directory Pin
Andy Latham15-May-02 2:37
Andy Latham15-May-02 2:37 
GeneralRe: Setting Current Directory Pin
Prem Kumar15-May-02 3:41
Prem Kumar15-May-02 3:41 
GeneralModal dialog closing problem Pin
Patrick Riphagen15-May-02 0:21
Patrick Riphagen15-May-02 0:21 
GeneralRe: Modal dialog closing problem Pin
Nish Nishant15-May-02 0:28
sitebuilderNish Nishant15-May-02 0:28 
QuestionHow can extract a Return Value from a Stored Procedure with ADO Pin
youssef14-May-02 23:48
youssef14-May-02 23:48 
AnswerRe: How can extract a Return Value from a Stored Procedure with ADO Pin
Jon Hulatt14-May-02 23:54
Jon Hulatt14-May-02 23:54 
GeneralRe: How can extract a Return Value from a Stored Procedure with ADO Pin
youssef15-May-02 2:52
youssef15-May-02 2:52 
GeneralRe: How can extract a Return Value from a Stored Procedure with ADO Pin
Jon Hulatt15-May-02 3:08
Jon Hulatt15-May-02 3:08 

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.