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

C / C++ / MFC

 
AnswerRe: how to restrict access to a folder Pin
Sebastian Schneider12-Jan-06 23:55
Sebastian Schneider12-Jan-06 23:55 
QuestionHow to get hold of the scrollbar in a frame. Pin
Owner drawn12-Jan-06 22:15
Owner drawn12-Jan-06 22:15 
QuestionCould not open pipe when testing named pipe Pin
MagnusO12-Jan-06 22:09
MagnusO12-Jan-06 22:09 
AnswerRe: Could not open pipe when testing named pipe Pin
kakan12-Jan-06 22:26
professionalkakan12-Jan-06 22:26 
QuestionHow to start and stop an application Pin
nripun12-Jan-06 22:00
nripun12-Jan-06 22:00 
AnswerRe: How to start and stop an application Pin
Roger Stoltz12-Jan-06 22:34
Roger Stoltz12-Jan-06 22:34 
GeneralRe: How to start and stop an application Pin
Anilkumar K V13-Jan-06 0:46
Anilkumar K V13-Jan-06 0:46 
GeneralRe: How to start and stop an application Pin
Roger Stoltz13-Jan-06 1:24
Roger Stoltz13-Jan-06 1:24 
That's one more solution.

I would choose the one I suggested earlier since I can post a WM_QUIT message using ::PostThreadMessage and I already have the thread ID which was given me in the process information parameter calling ::CreateProcess.
I would have everything I need to ask the second process to shutdown nicely, wait for it to end by waiting on the process handle and, if the process failed to close nicely after a desired timeout, I could terminate it using ::TerminateProcess.
I consider FindWindow an unnecessary round-trip, but it should work in most cases provided that the window name is known.

--
Roger


It's supposed to be hard, otherwise anybody could do it!
QuestionWhat is the difference b/w Debug and Release Pin
birajendu12-Jan-06 21:17
birajendu12-Jan-06 21:17 
AnswerRe: What is the difference b/w Debug and Release Pin
Prakash Nadar12-Jan-06 21:38
Prakash Nadar12-Jan-06 21:38 
AnswerRe: What is the difference b/w Debug and Release Pin
toxcct12-Jan-06 21:38
toxcct12-Jan-06 21:38 
AnswerRe: What is the difference b/w Debug and Release Pin
Rage12-Jan-06 21:40
professionalRage12-Jan-06 21:40 
GeneralRe: What is the difference b/w Debug and Release Pin
birajendu12-Jan-06 22:15
birajendu12-Jan-06 22:15 
AnswerRe: What is the difference b/w Debug and Release Pin
normanS13-Jan-06 1:08
normanS13-Jan-06 1:08 
GeneralRe: What is the difference b/w Debug and Release Pin
birajendu13-Jan-06 1:18
birajendu13-Jan-06 1:18 
GeneralRe: What is the difference b/w Debug and Release Pin
Shraddhan23-Jan-06 0:52
Shraddhan23-Jan-06 0:52 
QuestionCommunication between applications Pin
rider cool12-Jan-06 21:03
rider cool12-Jan-06 21:03 
AnswerRe: Communication between applications Pin
Michael Dunn12-Jan-06 21:14
sitebuilderMichael Dunn12-Jan-06 21:14 
AnswerRe: Communication between applications Pin
Rage12-Jan-06 21:44
professionalRage12-Jan-06 21:44 
AnswerRe: Communication between applications Pin
ThatsAlok12-Jan-06 22:48
ThatsAlok12-Jan-06 22:48 
Questionprinting .html/htm page Pin
Ankush Mehta12-Jan-06 20:23
Ankush Mehta12-Jan-06 20:23 
QuestionPrinting.eml (Internet E-Mail Message) Type of file Pin
Ankush Mehta12-Jan-06 20:18
Ankush Mehta12-Jan-06 20:18 
QuestionIs there any way to manually define resource id without conflict with others? Pin
followait12-Jan-06 19:19
followait12-Jan-06 19:19 
AnswerRe: Is there any way to manually define resource id without conflict with others? Pin
Owner drawn12-Jan-06 19:24
Owner drawn12-Jan-06 19:24 
GeneralRe: Is there any way to manually define resource id without conflict with others? Pin
<color>Aljechin 12-Jan-06 20:26
<color>Aljechin 12-Jan-06 20: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.