Standard Output doesn't display but can be redirected

Started by w3tno, May 08, 2010, 06:43:00 PM

Previous topic - Next topic

w3tno

I have used a simple program from this forum, which should display Hello x64 World! at the command line. When I run the program from a CMD window, the program executes ok, but nothing is displayed. If I redirct standard output to a file while invoking the program, the file contains the correct output. Any idea on why the output is not displayed when std io is not redirected?

Suggestions and comments will be greatly appreciated.

dedndave

i don't do 64-bit   :bg
but, i wanted to welcome you to the forum   :U
there are a few other hams here, as well (Rags and Greg Lyon)
i am Dave, K7NL

qWord

have you linked it as a console program (/SUBSYSTEM:console)?
FPU in a trice: SmplMath
It's that simple!

w3tno

Problem solved!! Many thanks to qWord for the "fix". Yes, I was linking it with the switch /subsystem:windows, and to add to my chagrin the person who had posted the program on this forum had listed console in his batch file, but I overlooked this fact.

And to Dave, my current call is n9jg, but w3tno was my first call and is currently unassigned.