Click here to Skip to main content
15,881,139 members
Articles / Programming Languages / Java

CaptureConsole.DLL - A Universal Console Output Redirector for all Compilers

Rate me:
Please Sign up or sign in to vote.
4.70/5 (41 votes)
28 Oct 2010CPOL7 min read 216.4K   3K   166  
Capture Console Output
// ---------------------------------------------------------------------------------------------------------
//
// CCaptureConsoleApp class
// 
// Purpose: Starts a Console Application and captures its stdout and stderr output while the app is running.
//
// Author: Elm�Soft (www.netcult.ch)
//
// ---------------------------------------------------------------------------------------------------------


#pragma once

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif


class CCaptureConsoleApp : public CWinApp
{
public:
	CCaptureConsoleApp();

	//{{AFX_VIRTUAL(CCaptureConsoleApp)
	//}}AFX_VIRTUAL

	//{{AFX_MSG(CCaptureConsoleApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};




By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) ElmüSoft
Chile Chile
Software Engineer since 40 years.

Comments and Discussions