[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

WIN32- Capturing Console Output

Posted on 1998-04-15
2
Medium Priority
?
385 Views
Last Modified: 2008-02-01
I need some sample code or detailed steps of a windowed application, launching a generic console application and the windowed application capturing the output of the child console program.  BTW, must handle both Windows 95 and NT 4.0 service pack 3.
0
Comment
Question by:rayb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 400 total points
ID: 1184327
Take a look at the following two Microsoft KB articles.

How to Spawn a Console App and Redirect Standard Handles
http://support.microsoft.com/support/kb/articles/q126/6/28.asp

Redirection Issues on Windows 95 MS-DOS Apps and Batch Files
http://support.microsoft.com/support/kb/articles/q150/9/56.asp


You can also look into the following two samples.
Platform SDK Code Samples\WINBASE\IPC\INHERIT

Visual C++ Samples\MFC Samples\MFC Internet Samples\HTTPSVR: Demonstrates World Wide Web HTTP Server
(ReqSock.cpp - CGIThread() and CGIDone() functions)
0
 
LVL 2

Author Comment

by:rayb
ID: 1184328
Thanks a bunch Chensu!

The most helpful URL was:
http://support.microsoft.com/support/kb/articles/q150/9/56.asp

This had everything I needed, I was able to quickly create my own sample program from the code shown on the page.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question