Newbie needs help - stream redirection

Posted on 1999-07-26
Medium Priority
Last Modified: 2010-08-05
I am new to C++ and am using VC++ 6.0.
I am just learning about the basic language syntax
and am really tired of looking at the Win32 consoles.
I am looking for code that will redirect the standard input
and output strems into a standard window.

Any help would be much appreciated.

thanking in advance
Question by:sukkha

Expert Comment

ID: 1201107
I had the demo and source for you.



Accepted Solution

rlim earned 40 total points
ID: 1201108
// Try this out

#include "stdafx.h"
#include <iostream.h>

int main(int argc, char* argv[])
      char m_cintest[100] = {NULL};

      printf("Hello World!\n");

      cout << "this is a test out." << endl;
      cout << "this requires a standard input ";
      cout << "the result \"" << m_cintest << "\""<< endl;

      return 0;


Expert Comment

ID: 1201109
Do you have much for the input and output? I have written an application that redirects the cin/ cout to two CEditView windows. However, due to the limitations of the Windows Edit Control, there is a limit on the size of the text.

Author Comment

ID: 1201110
No I don't have too much text to pass around.
I would be very keen to see your application and
if I can get it working the points are yours.

Thanking in advance


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

624 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