The MASM Forum Archive 2004 to 2012

Project Support Forums => 64 Bit Assembler => Topic started by: w3tno on May 08, 2010, 06:43:00 PM

Title: Standard Output doesn't display but can be redirected
Post by: w3tno on May 08, 2010, 06:43:00 PM
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.
Title: Re: Standard Output doesn't display but can be redirected
Post by: dedndave on May 08, 2010, 06:56:39 PM
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
Title: Re: Standard Output doesn't display but can be redirected
Post by: qWord on May 08, 2010, 07:30:39 PM
have you linked it as a console program (/SUBSYSTEM:console)?
Title: Re: Standard Output doesn't display but can be redirected
Post by: w3tno on May 08, 2010, 07:54:35 PM
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.