Click here to Skip to main content
16,010,544 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question is for prasad_som [modified] Pin
prasad_som27-Dec-06 22:57
prasad_som27-Dec-06 22:57 
GeneralRe: Question is for prasad_som Pin
amitmistry_petlad 27-Dec-06 23:01
amitmistry_petlad 27-Dec-06 23:01 
AnswerRe: Question is for prasad_som Pin
prasad_som27-Dec-06 23:16
prasad_som27-Dec-06 23:16 
GeneralRe: Question is for prasad_som Pin
amitmistry_petlad 28-Dec-06 2:16
amitmistry_petlad 28-Dec-06 2:16 
Questioncommand bar problem Pin
eantaru27-Dec-06 17:28
eantaru27-Dec-06 17:28 
AnswerRe: command bar problem Pin
Paul Conrad27-Dec-06 17:56
professionalPaul Conrad27-Dec-06 17:56 
GeneralRe: command bar problem Pin
eantaru27-Dec-06 18:01
eantaru27-Dec-06 18:01 
QuestionBlocking call to ShellExecuteEx? Pin
devvvy27-Dec-06 13:48
devvvy27-Dec-06 13:48 
Hi, I'm invoking ShellExecuteEx to launch another exe from my console application - the problem is, the call returns before the executing process is completed. Is there any way to get around this?
<br />
	::ZeroMemory(&shellInfo, sizeof(shellInfo));<br />
<br />
		shellInfo.cbSize = sizeof(shellInfo);<br />
		shellInfo.fMask = SEE_MASK_FLAG_NO_UI | SEE_MASK_NOCLOSEPROCESS;<br />
		shellInfo.lpFile = csCommand;<br />
		shellInfo.lpParameters = csArgument;<br />
		shellInfo.nShow = SW_HIDE;<br />
		shellInfo.hMonitor = <br />
<br />
		if (ShellExecuteEx(&shellInfo))<br />
		{<br />
			if (shellInfo.hProcess)<br />
			{<br />
				hProcess = shellInfo.hProcess;<br />
<br />
				bSuccess = TRUE;<br />
			}<br />
			else<br />
			{<br />
				bSuccess = FALSE;<br />
			}<br />
		}<br />
		else<br />
		{<br />
			bSuccess = FALSE;<br />
		}


Thanks.

Norman Fung

AnswerRe: Blocking call to ShellExecuteEx? Pin
baloneyman27-Dec-06 13:59
baloneyman27-Dec-06 13:59 
AnswerRe: Blocking call to ShellExecuteEx? Pin
Mark Salsbery27-Dec-06 14:00
Mark Salsbery27-Dec-06 14:00 
AnswerRe: Blocking call to ShellExecuteEx? Pin
Johan Pretorius27-Dec-06 14:06
Johan Pretorius27-Dec-06 14:06 
AnswerUse CreateProcess instead. Re: Blocking call to ShellExecuteEx? [modified] Pin
devvvy27-Dec-06 14:31
devvvy27-Dec-06 14:31 
QuestionHelp with a waveIn, waveOut program Pin
Commickey27-Dec-06 11:38
Commickey27-Dec-06 11:38 
AnswerRe: Help with a waveIn, waveOut program Pin
Mark Salsbery27-Dec-06 12:10
Mark Salsbery27-Dec-06 12:10 
GeneralRe: Help with a waveIn, waveOut program Pin
Commickey27-Dec-06 13:07
Commickey27-Dec-06 13:07 
AnswerRe: Help with a waveIn, waveOut program Pin
Hamid_RT27-Dec-06 18:09
Hamid_RT27-Dec-06 18:09 
QuestionHow to pause processing? Pin
Dustin Henry27-Dec-06 10:20
Dustin Henry27-Dec-06 10:20 
AnswerRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 11:18
Johan Pretorius27-Dec-06 11:18 
GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 11:51
Dustin Henry27-Dec-06 11:51 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:07
Johan Pretorius27-Dec-06 12:07 
GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:38
Dustin Henry27-Dec-06 12:38 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:42
Johan Pretorius27-Dec-06 12:42 
QuestionRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:13
Mark Salsbery27-Dec-06 12:13 
AnswerRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:36
Dustin Henry27-Dec-06 12:36 
GeneralRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:52
Mark Salsbery27-Dec-06 12:52 

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.