stdout

H

HoHum

I have an MFC app with a simple dialog but I want to now not
instantiate the dialog but still let the remainder of the exe run to
completion and print the results to standard out ( just as a Win32
console app does ) in the good old Hello World example using cout.

However, when I put any couts in the app and run it from a command
prompt I get no output at all :-(

Also tried ( in desperation ) printf and fprintf(stdout....) but got
nowt.

Is stdout redirected away from the commanding window.

Any ideas anybody.

OK, it's still dialog based but I want some output back at the command
prompt.

Thanks in advance

Paul.
 
A

Alf P. Steinbach

I have an MFC app with a simple dialog but I want to now not
instantiate the dialog but still let the remainder of the exe run to
completion and print the results to standard out ( just as a Win32
console app does ) in the good old Hello World example using cout.

However, when I put any couts in the app and run it from a command
prompt I get no output at all :-(

Also tried ( in desperation ) printf and fprintf(stdout....) but got
nowt.

Is stdout redirected away from the commanding window.

Any ideas anybody.

OK, it's still dialog based but I want some output back at the command
prompt.

If you re-post this question in [comp.os.ms-windows.programmer.win32],
which is an appropriate group, I'll give the simple non-C++-related answer.
 
D

David Harmon

I have an MFC app with a simple dialog but I want to now not
instantiate the dialog but still let the remainder of the exe run to
completion and print the results to standard out ( just as a Win32
console app does ) in the good old Hello World example using cout.

However, when I put any couts in the app and run it from a command
prompt I get no output at all :-(

Try creating a short simple example of what you are trying to do with NO
off-topic code left in it <see http://www.slack.net/~shiva/welcome.txt>
that demonstrates the problem. That is, get rid of all the MFC dialog
parts from it. Then post it here and maybe somebody can help you with
it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,160
Messages
2,570,889
Members
47,422
Latest member
LatashiaZc

Latest Threads

Top