Click here to Skip to main content
13,632,131 members

C / C++ / MFC

 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan14-Jul-18 4:10
protectorRichard MacCutchan14-Jul-18 4:10 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
0x01AA14-Jul-18 5:19
professional0x01AA14-Jul-18 5:19 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
CPallini11-Jul-18 21:22
mvpCPallini11-Jul-18 21:22 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Jochen Arndt12-Jul-18 23:13
mvpJochen Arndt12-Jul-18 23:13 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
0x01AA13-Jul-18 6:54
professional0x01AA13-Jul-18 6:54 
Questionneed COM/DCOM basics Pin
Sakthiu11-Jul-18 3:35
memberSakthiu11-Jul-18 3:35 
AnswerRe: need COM/DCOM basics Pin
jeron111-Jul-18 4:07
memberjeron111-Jul-18 4:07 
QuestionGlobal key press [SOLVED] Pin
Valentinor14-Jul-18 18:38
memberValentinor14-Jul-18 18:38 
Hi,

What is the recommended way to listen for a key press globally? At first, adding an infinite loop came to mind (for(;;), or while(true)), but these are bad choices, as they eat a lot of CPU, and adding sleep will cause to lose some of the key press events.
I want to make it to check any key (or key combination), to see what is pressed on Windows OS.
SuggestionRe: Global key press Pin
Jochen Arndt10-Jul-18 2:45
mvpJochen Arndt10-Jul-18 2:45 
GeneralRe: Global key press Pin
Valentinor10-Jul-18 8:29
memberValentinor10-Jul-18 8:29 
GeneralRe: Global key press Pin
Jochen Arndt10-Jul-18 21:21
mvpJochen Arndt10-Jul-18 21:21 
GeneralRe: Global key press Pin
Randor 10-Jul-18 23:53
professional Randor 10-Jul-18 23:53 
GeneralRe: Global key press Pin
Valentinor11-Jul-18 5:09
memberValentinor11-Jul-18 5:09 
GeneralRe: Global key press Pin
Jochen Arndt11-Jul-18 6:40
mvpJochen Arndt11-Jul-18 6:40 
GeneralRe: Global key press Pin
Valentinor13-Jul-18 20:45
memberValentinor13-Jul-18 20:45 
GeneralRe: Global key press Pin
Jochen Arndt13-Jul-18 21:00
mvpJochen Arndt13-Jul-18 21:00 
GeneralRe: Global key press Pin
Valentinor14-Jul-18 10:58
memberValentinor14-Jul-18 10:58 
QuestionOnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 4:34
memberMember 138991789-Jul-18 4:34 
GeneralRe: OnDeviceChange dbcc_name length Pin
Richard MacCutchan9-Jul-18 5:26
protectorRichard MacCutchan9-Jul-18 5:26 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 20:37
memberMember 138991789-Jul-18 20:37 
GeneralRe: OnDeviceChange dbcc_name length Pin
Richard MacCutchan9-Jul-18 21:04
protectorRichard MacCutchan9-Jul-18 21:04 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 21:06
memberMember 138991789-Jul-18 21:06 
SuggestionRe: OnDeviceChange dbcc_name length Pin
David Crow9-Jul-18 16:24
memberDavid Crow9-Jul-18 16:24 
AnswerRe: OnDeviceChange dbcc_name length Pin
Jochen Arndt9-Jul-18 22:57
mvpJochen Arndt9-Jul-18 22:57 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 23:26
memberMember 138991789-Jul-18 23:26 

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.


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180712.1 | Last Updated 20 Jul 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid