Click here to Skip to main content

C / C++ / MFC

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: Generic stack library in c Pinmember ThatsAlok 20:20 14 Mar '10  
Question"Virtual" Command Prompt Pinmemberhxhl9510:29 13 Mar '10  
GeneralRe: "Virtual" Command Prompt Pinmemberhxhl9511:52 13 Mar '10  
AnswerRe: "Virtual" Command Prompt PinmemberHristo Bojilov12:39 13 Mar '10  
GeneralRe: "Virtual" Command Prompt [modified] Pinmemberhxhl9513:31 13 Mar '10  
GeneralRe: "Virtual" Command Prompt Pinmemberhxhl9514:41 13 Mar '10  
AnswerRe: "Virtual" Command Prompt PinmemberStephen Hewitt19:23 13 Mar '10  
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? PinmemberSpawn@Melmac9:05 13 Mar '10  
AnswerRe: Modeless dialog closing when 'Enter' key is pressed? PinmemberSpawn@Melmac9:17 13 Mar '10  
QuestionSOCKET_ERROR when calling send method from seperate class PinmemberOmar El Fata7:49 13 Mar '10  
QuestionRe: SOCKET_ERROR when calling send method from seperate class PinmvpCPallini7:56 13 Mar '10  
AnswerRe: SOCKET_ERROR when calling send method from seperate class PinmemberOmar El Fata8:08 13 Mar '10  
GeneralRe: SOCKET_ERROR when calling send method from seperate class PinmemberOmar El Fata8:45 13 Mar '10  
AnswerRe: SOCKET_ERROR when calling send method from seperate class Pinmemberkrmed11:26 13 Mar '10  
GeneralRe: SOCKET_ERROR when calling send method from seperate class PinmemberOmar El Fata12:01 13 Mar '10  
QuestionWindow class, caption Pinmembertrioum5:26 13 Mar '10  
AnswerRe: Window class, caption PinmemberEugen Podsypalnikov5:34 13 Mar '10  
GeneralRe: Window class, caption Pinmembertrioum5:43 13 Mar '10  
GeneralRe: Window class, caption PinmemberEugen Podsypalnikov13:58 13 Mar '10  
QuestionRe: Window class, caption PinmvpDavidCrow6:20 13 Mar '10  
AnswerRe: Window class, caption Pinmember ThatsAlok 20:21 14 Mar '10  
QuestionHow can use VB dll in VC++ code? PinmemberLe@rner2:45 13 Mar '10  
AnswerRe: How can use VB dll in VC++ code? PinmemberLunaticFringe3:33 13 Mar '10  
AnswerRe: How can use VB dll in VC++ code? Pinmember ThatsAlok 20:24 14 Mar '10  
AnswerRe: How can use VB dll in VC++ code? Pinmembershivanandgupta21:30 14 Mar '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.5.120210.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid