Solved

Displaying status lines

Posted on 2000-04-19
4
144 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
[X]
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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

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

Suggested Solutions

Title # Comments Views Activity
Is it possible to combine several text files into one big one? (redhat v5 enterprise) 4 115
bobThere java chalenge 45 97
no14 challenge 14 78
Not needed 13 134
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 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