Click here to Skip to main content
15,885,366 members
Articles / Desktop Programming / MFC

Redirecting an Arbitrary Console's Input/Output

Rate me:
Please Sign up or sign in to vote.
4.91/5 (62 votes)
27 Nov 20033 min read 435K   15.4K   128  
How to redirect an arbitrary console's input/output in a simple, graceful way
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RedirDemo", "RedirDemo.vcproj", "{E9E87A7F-78C8-4F8E-A9E2-734DE2B96153}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		Debug = Debug
		Release = Release
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{E9E87A7F-78C8-4F8E-A9E2-734DE2B96153}.Debug.ActiveCfg = Debug|Win32
		{E9E87A7F-78C8-4F8E-A9E2-734DE2B96153}.Debug.Build.0 = Debug|Win32
		{E9E87A7F-78C8-4F8E-A9E2-734DE2B96153}.Release.ActiveCfg = Release|Win32
		{E9E87A7F-78C8-4F8E-A9E2-734DE2B96153}.Release.Build.0 = Release|Win32
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

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.


Written By
Web Developer
Canada Canada
Nick Adams is one of my favorite figures in Hemingway's stories. I use it because Jeff Lee has been occupied on Codeproject.

Comments and Discussions