|
-
January 28th, 2008, 08:38 PM
#1
Runing console application from MFC-SDI
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|