Click here to Skip to main content
16,011,784 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can i know if a given PID have a window & how to get the handle of that window ? Pin
5-Mar-02 23:54
suss5-Mar-02 23:54 
AnswerRe: How can i know if a given PID have a window & how to get the handle of that window ? Pin
Tomasz Sowinski5-Mar-02 23:59
Tomasz Sowinski5-Mar-02 23:59 
GeneralRe: How can i know if a given PID have a window & how to get the handle of that window ? Pin
Nish Nishant6-Mar-02 0:33
sitebuilderNish Nishant6-Mar-02 0:33 
GeneralRe: How can i know if a given PID have a window & how to get the handle of that window ? Pin
Tomasz Sowinski6-Mar-02 0:54
Tomasz Sowinski6-Mar-02 0:54 
AnswerThanx guys Pin
6-Mar-02 1:46
suss6-Mar-02 1:46 
GeneralDetecting when running from the command line Pin
Parish5-Mar-02 23:16
Parish5-Mar-02 23:16 
GeneralRe: Detecting when running from the command line Pin
Nish Nishant5-Mar-02 23:24
sitebuilderNish Nishant5-Mar-02 23:24 
GeneralRe: Detecting when running from the command line Pin
Parish5-Mar-02 23:54
Parish5-Mar-02 23:54 
Ah yes, I'd forgotten about that trick. Unfortunately it is not an acceptable solution in this case.

I failed to mention that this app already has some handling for outputting the info but the text only appears if the output is piped to MORE:

myapp /? | more

The app calls GetConsoleMode() and SetConsoleMode() but I suspect that these are being passed the wrong parameters (the app was originally Unix which uses a different mechanism to handle this).


while (!asleep)
code();
GeneralRe: Detecting when running from the command line Pin
moliate6-Mar-02 1:05
moliate6-Mar-02 1:05 
GeneralRe: Detecting when running from the command line Pin
Joel Lucsy6-Mar-02 4:52
Joel Lucsy6-Mar-02 4:52 
GeneralRe: Detecting when running from the command line Pin
Parish6-Mar-02 20:22
Parish6-Mar-02 20:22 
GeneralFile names inside a folder.. Pin
Neha5-Mar-02 22:58
Neha5-Mar-02 22:58 
GeneralRe: File names inside a folder.. Pin
Nish Nishant5-Mar-02 23:18
sitebuilderNish Nishant5-Mar-02 23:18 
GeneralRe: File names inside a folder.. Pin
Mazdak6-Mar-02 0:29
Mazdak6-Mar-02 0:29 
GeneralSpinbutton and EN_CHANGE Pin
Arjan Schouten5-Mar-02 22:09
Arjan Schouten5-Mar-02 22:09 
GeneralCopy constructor ignored when passing by value to a function with unspecified number of arguments. Pin
Serge Krynine5-Mar-02 21:01
Serge Krynine5-Mar-02 21:01 
GeneralRe: Copy constructor ignored when passing by value to a function with unspecified number of arguments. Pin
Joaquín M López Muñoz5-Mar-02 21:38
Joaquín M López Muñoz5-Mar-02 21:38 
GeneralRe: Check this disassembly.... Pin
Atul Dharne6-Mar-02 0:04
Atul Dharne6-Mar-02 0:04 
GeneralRe: Copy constructor ignored when passing by value to a function with unspecified number of arguments. Pin
Serge Krynine6-Mar-02 14:41
Serge Krynine6-Mar-02 14:41 
GeneralCalling member function from CALLBACK function Pin
5-Mar-02 20:46
suss5-Mar-02 20:46 
GeneralRe: Calling member function from CALLBACK function Pin
5-Mar-02 20:53
suss5-Mar-02 20:53 
GeneralRe: Calling member function from CALLBACK function Pin
Michael Dunn6-Mar-02 7:28
sitebuilderMichael Dunn6-Mar-02 7:28 
GeneralDraw something on the button Pin
Rickard Andersson205-Mar-02 20:44
Rickard Andersson205-Mar-02 20:44 
GeneralRe: Draw something on the button Pin
Christian Graus6-Mar-02 10:30
protectorChristian Graus6-Mar-02 10:30 
GeneralI want to Write CToolBar class from the scratch Pin
Abhishek Narula5-Mar-02 19:34
Abhishek Narula5-Mar-02 19:34 

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.