Solved

Displaying status lines

Posted on 2000-04-19
4
142 Views
Last Modified: 2013-11-20
When programming in ansi c++ i use cout to display the state of my prog to the command line.

I've started writing mfc apps, (normal SDI and MDI). Is there a way i can open up a console or something, (or another view in an mdi app) to print text to easily? Like:
 cout << endl << "text";
Thanks.
(I dont want to use TRACE).
0
Comment
Question by:coles01
4 Comments
 
LVL 1

Expert Comment

by:MT_MU
ID: 2732833
Check out AllocConsole();

0
 
LVL 1

Expert Comment

by:Dhrubajyoti
ID: 2733375
you can have a status bar or view dispaly your text .please tell us which one will you prefer.

0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 2733397
See

INFO: Calling CRT Output Routines from a GUI Application
http://support.microsoft.com/support/kb/articles/Q105/3/05.asp

However, it is better to use a GUI control, such as a status bar or an edit control. My article at CodeGuru demonstrates how to use an edit control to display status messages.

Download a File Using URLDownloadToCacheFile
http://www.codeguru.com/internet/urlfile.shtml
0
 

Author Comment

by:coles01
ID: 2733975
thank you
0

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

762 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