Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSolution for globally listening to keys pressed Pin
0v3rloader25-Jul-04 6:59
0v3rloader25-Jul-04 6:59 
GeneralRe: Solution for globally listening to keys pressed Pin
PJ Arends25-Jul-04 10:13
professionalPJ Arends25-Jul-04 10:13 
Questionhow to pass a simple char* to a unicode binary text?? Pin
youpiyoyo25-Jul-04 5:45
youpiyoyo25-Jul-04 5:45 
AnswerRe: how to pass a simple char* to a unicode binary text?? Pin
bikram singh26-Jul-04 7:53
bikram singh26-Jul-04 7:53 
GeneralODBC Database Metadata (All Table names) Pin
omair shafiq25-Jul-04 5:34
omair shafiq25-Jul-04 5:34 
GeneralRe: ODBC Database Metadata (All Table names) Pin
David Crow26-Jul-04 4:05
David Crow26-Jul-04 4:05 
GeneralC reateProcess Pin
Member 75213725-Jul-04 4:04
Member 75213725-Jul-04 4:04 
GeneralRe: C reateProcess Pin
PJ Arends25-Jul-04 10:06
professionalPJ Arends25-Jul-04 10:06 
This probably a hack, and someone else will come along and say "Don't do that, use function so-and-so". But I don't know of any function that does this directly. So what I came up with is to use EnumWindows() to enumerate all the top level windows. In the EnumWindowsProc() use GetWindowThreadProcessId() to compare the window process ID with the one you got from CreateProcess(). Just be sure to leave enough time between the CreateProcess call and the EnumWindows call for the window to be actually created.

Works like a charm.








"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Generalbandwidth monitoring Pin
Paolo Ponzano25-Jul-04 2:38
Paolo Ponzano25-Jul-04 2:38 
QuestionJumping out of a heavily-nested looping noy by using "goto" statement? Pin
Link260024-Jul-04 17:24
Link260024-Jul-04 17:24 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Ravi Bhavnani24-Jul-04 17:52
professionalRavi Bhavnani24-Jul-04 17:52 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Mike Dimmick25-Jul-04 5:30
Mike Dimmick25-Jul-04 5:30 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
peterchen25-Jul-04 6:13
peterchen25-Jul-04 6:13 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Ravi Bhavnani25-Jul-04 12:01
professionalRavi Bhavnani25-Jul-04 12:01 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Michael Dunn24-Jul-04 18:22
sitebuilderMichael Dunn24-Jul-04 18:22 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Johan Rosengren24-Jul-04 20:19
Johan Rosengren24-Jul-04 20:19 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
bikram singh24-Jul-04 21:53
bikram singh24-Jul-04 21:53 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Kevin McFarlane25-Jul-04 6:52
Kevin McFarlane25-Jul-04 6:52 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
bikram singh26-Jul-04 7:35
bikram singh26-Jul-04 7:35 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Kevin McFarlane30-Jul-04 8:24
Kevin McFarlane30-Jul-04 8:24 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
bikram singh31-Jul-04 2:32
bikram singh31-Jul-04 2:32 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Nemanja Trifunovic25-Jul-04 5:54
Nemanja Trifunovic25-Jul-04 5:54 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
David Crow26-Jul-04 4:29
David Crow26-Jul-04 4:29 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Henry miller26-Jul-04 6:48
Henry miller26-Jul-04 6:48 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
palbano25-Jul-04 17:47
palbano25-Jul-04 17:47 

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.