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:
-------------------------
.data
myword db "Hello World!", 0
.code
start:
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 :(
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:
-------------------------
.data
myword db "Hello World!", 0
.code
start:
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 :(
Did you link the app as a console app?
Thomas
link /subsystem:[b]console[/b] file.obj
Thomas
Ah, geez. That's the problem. Thanks a lot!
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:
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:
link option-> Search the board for link or com related threads.
restarting AsmEdit4.2-> AsmEdit4.3 has this problem solved. Get it here:
http://asmedit.massmind.org
restarting AsmEdit4.2-> AsmEdit4.3 has this problem solved. Get it here:
http://asmedit.massmind.org
prana:
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.
e.g
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.
e.g
ML.EXE /I"c:\masm32\include",foo.asm, /link /LIBPATH:"c:\masm32\lib"
Thanks guys ;):alright: