Hey guys, just a little question about StdOut.

Doesn't StdOut write to a console window? Because I can't for the life of me get any kind of output from it.

This is the simplest program I could come up with to test it:

myword db "Hello World!", 0


invoke StdOut, addr myword

invoke ExitProcess, 0

end start

But I get absolutely no output when I run the program from a console window. Printing out was always the first thing I learned for the other languages I've used, but I can't even get this work here :(
Posted on 2002-04-17 15:48:33 by Ronin Magus
Did you link the app as a console app?

link /subsystem:[b]console[/b] file.obj

Posted on 2002-04-17 16:18:42 by Thomas
Ah, geez. That's the problem. Thanks a lot!
Posted on 2002-04-17 18:16:02 by Ronin Magus
Thank god for the search function. :alright:

Anyone know if I can incorporate the link option into my program so that it automatically links ? I know, it's a silly question. Just that, I use ASMEdit V4.2 and I dont know where to put the link in.
:confused: :alright:

Also, has anyone noticed that ASMEdit V4.2 will need to be restarted after a few interactions, or else Explorer begins to crash and the PC becomes really slow. :eek:
Posted on 2002-07-04 01:05:51 by prana
link option-> Search the board for link or com related threads.

restarting AsmEdit4.2-> AsmEdit4.3 has this problem solved. Get it here:

Posted on 2002-07-04 08:06:37 by gscundiff
if you ommit the /c parameter to ml.exe then link.exe will be automatically invoked after assembling. You must supply the linker options via the /link parameter to ml.exe.

ML.EXE /I"c:\masm32\include",foo.asm, /link /LIBPATH:"c:\masm32\lib"
Posted on 2002-07-04 09:02:23 by MArtial_Code
Thanks guys ;):alright:
Posted on 2002-07-07 22:36:45 by prana