I wrote this function a while back which you may find useful:
CString SpawnProcessReturnStdOut( char *command_line )
{
CString result = "";
// Setup default pipe security with the bInheritHandle flag set to
// allow pipe handles to be inherited by the child process...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.