Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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
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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

715 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