Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Replacing file types combo in CFileDialog Pin
20-Jun-01 9:21
suss20-Jun-01 9:21 
QuestionMultimedia in MFC?? Pin
Rickard Andersson2012-Jun-01 6:24
Rickard Andersson2012-Jun-01 6:24 
AnswerRe: Multimedia in MFC?? Pin
RobJones12-Jun-01 7:16
RobJones12-Jun-01 7:16 
AnswerRe: Multimedia in MFC?? Pin
RobJones12-Jun-01 7:18
RobJones12-Jun-01 7:18 
GeneralRunning Programs & Waiting For Them To Finish Pin
Jason Teagle12-Jun-01 4:35
Jason Teagle12-Jun-01 4:35 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Tomasz Sowinski12-Jun-01 4:44
Tomasz Sowinski12-Jun-01 4:44 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Jason Teagle12-Jun-01 5:37
Jason Teagle12-Jun-01 5:37 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Tomasz Sowinski12-Jun-01 5:53
Tomasz Sowinski12-Jun-01 5:53 
> If I call WaitForSingleObject(), the second app is stuck

I'm not sure what do you mean by 'second app' - the one which called ShellExecuteEx, or the child process?

Anyway, I'd move ShellExecuteEx and WaitForSingleObect to a separate thread - this way your message pump will work without any problems. When child process ends and WaitForSingleObject finishes, just call PostMessage to ensure that your main thread (the one with message pump) knows about it.

Tomasz Sowinski -- http://www.shooltz.com.pl
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Jason Teagle12-Jun-01 5:58
Jason Teagle12-Jun-01 5:58 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Tomasz Sowinski12-Jun-01 6:11
Tomasz Sowinski12-Jun-01 6:11 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Stephen Kellett13-Jun-01 0:01
Stephen Kellett13-Jun-01 0:01 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Jason Teagle13-Jun-01 0:17
Jason Teagle13-Jun-01 0:17 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
#realJSOP13-Jun-01 1:03
professional#realJSOP13-Jun-01 1:03 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Carlos Antollini12-Jun-01 4:55
Carlos Antollini12-Jun-01 4:55 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Jason Teagle12-Jun-01 5:41
Jason Teagle12-Jun-01 5:41 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Tomasz Sowinski12-Jun-01 5:02
Tomasz Sowinski12-Jun-01 5:02 
GeneralRe: Running Programs & Waiting For Them To Finish Pin
Jason Teagle12-Jun-01 5:43
Jason Teagle12-Jun-01 5:43 
Generalinternet address shortcut Pin
12-Jun-01 4:19
suss12-Jun-01 4:19 
GeneralRe: internet address shortcut Pin
Jason Teagle12-Jun-01 4:37
Jason Teagle12-Jun-01 4:37 
GeneralRe: internet address shortcut Pin
Carlos Antollini12-Jun-01 9:12
Carlos Antollini12-Jun-01 9:12 
GeneralRe: internet address shortcut Pin
12-Jun-01 19:55
suss12-Jun-01 19:55 
Generaletc. information Pin
12-Jun-01 3:59
suss12-Jun-01 3:59 
GeneralRe: etc. information Pin
Christian Graus12-Jun-01 11:57
protectorChristian Graus12-Jun-01 11:57 
GeneralITOA Pin
12-Jun-01 3:33
suss12-Jun-01 3:33 
GeneralRe: ITOA Pin
Michael P Butler12-Jun-01 3:42
Michael P Butler12-Jun-01 3:42 

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.