Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Real-Time Console Output Redirection

, 31 Oct 2006
Console process output flushing is no longer a problem with this little stub.
rtconsoledemo.zip
RTconsoleDemo
Demo
Demo.dsp
res
Demo.ico
Demo.dsw
DemoConsole
DemoConsole.dsp
Release
Demo.exe
DemoConsole.exe
RTconsole.exe
RTconsole
RTconsole.dsp
// DemoDlg.h : header file
//

#if !defined(AFX_DEMODLG_H__6CC4368E_23F2_499D_9223_CD5F2EF43827__INCLUDED_)
#define AFX_DEMODLG_H__6CC4368E_23F2_499D_9223_CD5F2EF43827__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CDemoDlg dialog

class CDemoDlg : public CDialog
{
// Construction
public:
	CDemoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CDemoDlg)
	enum { IDD = IDD_DEMO_DIALOG };
	CEdit	m_log;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDemoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnGo();
	afx_msg void OnGo2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void Go(LPCTSTR commandLine);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DEMODLG_H__6CC4368E_23F2_499D_9223_CD5F2EF43827__INCLUDED_)

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

_Olivier_
Architect
France France
Programmer since the age of 7. Windows programmer for more than 10 years
I'm now 30 years old, working as software architect, team leader and lead programmer.
 
You can find some of the programs I released for Internet users at my web site

| Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 31 Oct 2006
Article Copyright 2006 by _Olivier_
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid