Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Visual C++6 Pin
David Crow28-Aug-08 3:27
David Crow28-Aug-08 3:27 
GeneralRe: Visual C++6 Pin
Jijo.Raj28-Aug-08 3:29
Jijo.Raj28-Aug-08 3:29 
AnswerRe: Visual C++6 Pin
super_ttd28-Aug-08 7:33
super_ttd28-Aug-08 7:33 
GeneralRe: Visual C++6 Pin
susanne128-Aug-08 21:26
susanne128-Aug-08 21:26 
GeneralRe: Visual C++6 Pin
super_ttd30-Aug-08 23:29
super_ttd30-Aug-08 23:29 
QuestionCListCTrl Hyperlink Problem Pin
Dhiraj kumar Saini28-Aug-08 2:03
Dhiraj kumar Saini28-Aug-08 2:03 
AnswerRe: CListCTrl Hyperlink Problem Pin
Nibu babu thomas28-Aug-08 2:40
Nibu babu thomas28-Aug-08 2:40 
QuestionKeyboard and Mouse State Pin
Alan Chambers28-Aug-08 1:58
Alan Chambers28-Aug-08 1:58 
Hi all

I'm wanting to retrieve the current keyboard and mouse state without having to wait for an event message.

I basically have a main thread and a window thread. The window thread handles the windows message pump so that if my app locks up, it can still process close messages etc. The main thread is where I am wanting to do the device state reads.

Everything I've looked at so far (RAWINPUT, SetWindowsHookEx) rely on an event message being posted before I am able to read the state from the device. This is no good to me.

I've also looked at GetKeyboardState(..) but that only retrieves the keyboard state in the thread that is handling the windows messages, so calling it from the main thread does not work (but calling it from the window thread does).

I'm starting to think the only way is to get access to the device driver and directly read from the device.

Anyone know any decent articles on this?

Thanks,
Alan.

"When I left you I was but the learner, now I am the master" - Darth Vader

AnswerRe: Keyboard and Mouse State Pin
Nibu babu thomas28-Aug-08 2:38
Nibu babu thomas28-Aug-08 2:38 
GeneralRe: Keyboard and Mouse State Pin
Alan Chambers28-Aug-08 4:09
Alan Chambers28-Aug-08 4:09 
Questionshared memeory concepts in windows Pin
manju23reddy28-Aug-08 1:52
manju23reddy28-Aug-08 1:52 
AnswerRe: shared memeory concepts in windows Pin
Rajesh R Subramanian28-Aug-08 1:58
professionalRajesh R Subramanian28-Aug-08 1:58 
AnswerRe: shared memeory concepts in windows Pin
Jijo.Raj28-Aug-08 2:54
Jijo.Raj28-Aug-08 2:54 
Questionerror calling in dll Pin
VCProgrammer28-Aug-08 1:07
VCProgrammer28-Aug-08 1:07 
AnswerRe: error calling in dll Pin
Mark Salsbery28-Aug-08 5:55
Mark Salsbery28-Aug-08 5:55 
QuestionClient-Server program Pin
nisha0000028-Aug-08 0:49
nisha0000028-Aug-08 0:49 
AnswerRe: Client-Server program [modified] Pin
onlyjaypatel28-Aug-08 1:27
onlyjaypatel28-Aug-08 1:27 
AnswerRe: Client-Server program Pin
Jijo.Raj28-Aug-08 2:39
Jijo.Raj28-Aug-08 2:39 
AnswerRe: Client-Server program Pin
Hamid_RT28-Aug-08 23:06
Hamid_RT28-Aug-08 23:06 
QuestionHaving problem in figuring out the logic (c++) Pin
raesa28-Aug-08 0:35
raesa28-Aug-08 0:35 
AnswerRe: Having problem in figuring out the logic (c++) Pin
Cedric Moonen28-Aug-08 0:49
Cedric Moonen28-Aug-08 0:49 
GeneralRe: Having problem in figuring out the logic (c++) Pin
raesa28-Aug-08 0:57
raesa28-Aug-08 0:57 
GeneralRe: Having problem in figuring out the logic (c++) Pin
Cedric Moonen28-Aug-08 2:04
Cedric Moonen28-Aug-08 2:04 
GeneralRe: Having problem in figuring out the logic (c++) Pin
raesa28-Aug-08 2:28
raesa28-Aug-08 2:28 
GeneralRe: Having problem in figuring out the logic (c++) [modified] Pin
oobimoo28-Aug-08 7:40
oobimoo28-Aug-08 7:40 

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.