Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Generic stack library in c PinPopular
«_Superman_»13-Mar-10 17:04
professional«_Superman_»13-Mar-10 17:04 
AnswerRe: Generic stack library in c Pin
ThatsAlok14-Mar-10 19:20
ThatsAlok14-Mar-10 19:20 
Question"Virtual" Command Prompt Pin
hxhl9513-Mar-10 9:29
hxhl9513-Mar-10 9:29 
GeneralRe: "Virtual" Command Prompt Pin
hxhl9513-Mar-10 10:52
hxhl9513-Mar-10 10:52 
AnswerRe: "Virtual" Command Prompt Pin
Hristo-Bojilov13-Mar-10 11:39
Hristo-Bojilov13-Mar-10 11:39 
GeneralRe: "Virtual" Command Prompt [modified] Pin
hxhl9513-Mar-10 12:31
hxhl9513-Mar-10 12:31 
GeneralRe: "Virtual" Command Prompt Pin
hxhl9513-Mar-10 13:41
hxhl9513-Mar-10 13:41 
AnswerRe: "Virtual" Command Prompt Pin
Stephen Hewitt13-Mar-10 18:23
Stephen Hewitt13-Mar-10 18:23 
Start the command directly but use pipes to redirect it's output. See this[^] article for details.

As for telling when the program is done use the process HANDLE returned in the LPPROCESS_INFORMATION structure passed to CreateProcess. A process HANDLE can be passed to one of wait functions such as WaitForSingleObject because it becomes signalled when the process has finished executing. Also note that a common mistake made by people is not to close the process and thread HANDLEs when they're done with them (or not at all).

Use GetExitCodeProcess to retrieve the return code.
Steve

QuestionModeless dialog closing when 'Enter' key is pressed? Pin
Spawn@Melmac13-Mar-10 8:05
Spawn@Melmac13-Mar-10 8:05 
AnswerRe: Modeless dialog closing when 'Enter' key is pressed? Pin
Spawn@Melmac13-Mar-10 8:17
Spawn@Melmac13-Mar-10 8:17 
QuestionSOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 6:49
Omar El Fata13-Mar-10 6:49 
QuestionRe: SOCKET_ERROR when calling send method from seperate class Pin
CPallini13-Mar-10 6:56
mveCPallini13-Mar-10 6:56 
AnswerRe: SOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 7:08
Omar El Fata13-Mar-10 7:08 
GeneralRe: SOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 7:45
Omar El Fata13-Mar-10 7:45 
AnswerRe: SOCKET_ERROR when calling send method from seperate class Pin
krmed13-Mar-10 10:26
krmed13-Mar-10 10:26 
GeneralRe: SOCKET_ERROR when calling send method from seperate class Pin
Omar El Fata13-Mar-10 11:01
Omar El Fata13-Mar-10 11:01 
QuestionWindow class, caption Pin
trioum13-Mar-10 4:26
trioum13-Mar-10 4:26 
AnswerRe: Window class, caption Pin
Eugen Podsypalnikov13-Mar-10 4:34
Eugen Podsypalnikov13-Mar-10 4:34 
GeneralRe: Window class, caption Pin
trioum13-Mar-10 4:43
trioum13-Mar-10 4:43 
GeneralRe: Window class, caption Pin
Eugen Podsypalnikov13-Mar-10 12:58
Eugen Podsypalnikov13-Mar-10 12:58 
QuestionRe: Window class, caption Pin
David Crow13-Mar-10 5:20
David Crow13-Mar-10 5:20 
AnswerRe: Window class, caption Pin
ThatsAlok14-Mar-10 19:21
ThatsAlok14-Mar-10 19:21 
QuestionHow can use VB dll in VC++ code? Pin
Le@rner13-Mar-10 1:45
Le@rner13-Mar-10 1:45 
AnswerRe: How can use VB dll in VC++ code? Pin
LunaticFringe13-Mar-10 2:33
LunaticFringe13-Mar-10 2:33 
AnswerRe: How can use VB dll in VC++ code? Pin
ThatsAlok14-Mar-10 19:24
ThatsAlok14-Mar-10 19:24 

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.