Debugging Spawned Applications in Visual C++Last reviewed: July 22, 1997Article ID: Q118683 |
1.00 1.50
WINDOWS
kbtool
The information in this article applies to:
SUMMARYThis article describes how to debug an application that is spawned (executed) from another application within the Visual Workbench for Windows.
MORE INFORMATIONThe sample code below contains the source for files PROG_A.EXE and PROG_B.EXE. To debug PROG_B.EXE, which is spawned from PROG_A.EXE, perform the following steps:
Sample Code
/* Compile options needed: Default QuickWin settings. */ // PROG_A.CPP #include <iostream.h> #include <windows.h> void main( void ) { cout << "Starting Prog_a.exe" << endl; i = WinExec("prog_b.exe", SW_SHOW); } // PROG_B.CPP #include <iostream.h> void main() { cout << "Greetings from Prog_b." << endl; } |
Additional reference words: kbinf 1.00 1.50 CreateProcess
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |