Re: Running DOS program within MFC GUI APP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



>Within the MFC environment, what is the preferred way to synchronously spawn
>(i.e. execute and wait) a DOS console application (with an argv argument
>list).

Use CreateProcess and WaitForSingleObject on the process handle
returned in the PROCESS_INFORMATION structure.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages