instead of using windows, i want to use a simple cmd.exe window - i want to just print to console, how can i do this?
marla,
When you build the project, link it in the following manner:
\masm32\bin\link /SUBSYSTEM:CONSOLE /RELEASE /VERSION:4.0 appname.obj
This will open a console window automaticaly and you can use any of the console commands, if you need an example, just ask.
Paul
i need an example... thx again for the help
code vomit..
.386
.model flat, stdcall
option casemap:none
include windows.inc
include kernel32.inc
includelib kernel32.lib
.data
greeting db "Hello World!",0
.data?
hStdOut HANDLE ?
hStdErr HANDLE ?
chWritten DWORD ?
.code
start:
invoke GetStdHandle, STD_OUTPUT_HANDLE
mov hStdOut,eax
invoke GetStdHandle, STD_ERROR_HANDLE
mov hStdErr,eax
invoke WriteFile, hStdOut,ADDR greeting,SIZEOF greeting-1,ADDR chWritten,NULL
invoke ExitProcess, NULL
end start