Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to detect such a event? Pin
ray_li21-Jul-03 3:49
ray_li21-Jul-03 3:49 
GeneralPointer to pointer Pin
roel_18-Jul-03 7:26
roel_18-Jul-03 7:26 
GeneralRe: Pointer to pointer Pin
AlexO18-Jul-03 7:31
AlexO18-Jul-03 7:31 
GeneralRe: Pointer to pointer Pin
John M. Drescher18-Jul-03 7:41
John M. Drescher18-Jul-03 7:41 
GeneralRe: Pointer to pointer Pin
Peter Weyzen18-Jul-03 7:51
Peter Weyzen18-Jul-03 7:51 
GeneralRe: Pointer to pointer Pin
John M. Drescher18-Jul-03 8:08
John M. Drescher18-Jul-03 8:08 
GeneralRe: Pointer to pointer Pin
Anthony_Yio20-Jul-03 17:32
Anthony_Yio20-Jul-03 17:32 
GeneralCreateProcess error Pin
will138318-Jul-03 7:24
will138318-Jul-03 7:24 
Hi everyone.

I'm having a problem with the CreateProcess routine. I'm calling using the following:

if (CreateProcess(cmdArg, cmdFileName,
NULL,
NULL,
TRUE,
DETACHED_PROCESS /*CREATE_NEW_CONSOLE */,
NULL,
NULL,
&si,
&pi) != 0){

CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
}

It works absolutely perfrect with the execption of one thing, the Application calling this doesn't return from the CreateProcess call until the process created returns. Confused | :confused: I really need the Call to return so I can shut down the calling Process after I'm done.

I looked at using WinExec but that doesn't return either. What am I missing here? What method should I use?
Thanks!

GeneralRe: CreateProcess error Pin
David Crow18-Jul-03 9:29
David Crow18-Jul-03 9:29 
GeneralRe: CreateProcess error Pin
Lhenno Ferrari19-Jul-03 4:10
Lhenno Ferrari19-Jul-03 4:10 
GeneralSetting window size Pin
Shay Harel18-Jul-03 7:10
Shay Harel18-Jul-03 7:10 
GeneralRe: Setting window size Pin
John M. Drescher18-Jul-03 8:29
John M. Drescher18-Jul-03 8:29 
GeneralLInking Statically to MFC Pin
Code4Food18-Jul-03 6:33
Code4Food18-Jul-03 6:33 
GeneralRe: LInking Statically to MFC Pin
Rick York18-Jul-03 6:42
mveRick York18-Jul-03 6:42 
QuestionHow Base64 convert Pin
Anonymous18-Jul-03 5:19
Anonymous18-Jul-03 5:19 
AnswerRe: How Base64 convert Pin
markkuk18-Jul-03 5:28
markkuk18-Jul-03 5:28 
AnswerRe: How Base64 convert Pin
Anthony_Yio20-Jul-03 17:24
Anthony_Yio20-Jul-03 17:24 
GeneralBinary STRINGTABLE Resource Format Pin
Blake Miller18-Jul-03 5:14
Blake Miller18-Jul-03 5:14 
GeneralRe: Binary STRINGTABLE Resource Format Pin
David Crow18-Jul-03 5:44
David Crow18-Jul-03 5:44 
GeneralProblems with WM_VSCROLL PostMessage Pin
Greg Ellis18-Jul-03 4:47
Greg Ellis18-Jul-03 4:47 
GeneralRe: Problems with WM_VSCROLL PostMessage Pin
PJ Arends18-Jul-03 11:47
professionalPJ Arends18-Jul-03 11:47 
GeneralRe: Problems with WM_VSCROLL PostMessage Pin
Ilushka20-Jul-03 21:43
Ilushka20-Jul-03 21:43 
GeneralA SetFont problem Pin
Vincent Ye18-Jul-03 4:21
Vincent Ye18-Jul-03 4:21 
GeneralRe: A SetFont problem Pin
Chris Losinger18-Jul-03 4:37
professionalChris Losinger18-Jul-03 4:37 
GeneralRe: A SetFont problem Pin
Vincent Ye18-Jul-03 4:57
Vincent Ye18-Jul-03 4:57 

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.