Hello,
I have to run a console application (nmkae.exe, cl.exe, link.exe) from an MFC-SDI application (Visual Studio 6.0). I tried doing it it using CreateProcess, ShellExecute and system.
The console application prints some error messages on the console window and quits.
How can I save those error messages ?
I tried doing it using:
system ("nmake > log.txt")
I expected to get the following message in log.txt:
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.

C:\Documents and Settings\Owner>

But the file was empty.

Can you help ?
Thanks.