Could someone point me in the direction of a Console mode example, or failing that tell me what 'includes' or 'headers' are required, just so that I can get started. I have been concentrating on GUI's up till now, and I have an application that just requires a text mode,
Posted on 2001-09-22 09:08:52 by Mel
check this thread
Posted on 2001-09-22 09:18:14 by NEMO
Thanx NEMO,
I'm checking it out now, looks more complicated than a GUI:confused:
Posted on 2001-09-22 09:37:01 by Mel
Here is an attachment written for FAsm:
Win 32
Posted on 2001-09-22 22:02:08 by eet_1024
Thanx eet_1024,
but I'm still not sure which includes are needed in MASM32, I'll have to suck it and see, that is unless someone can shed a little more light on it,
Posted on 2001-09-23 02:21:53 by Mel
no special includes are needed, just the stanardone

.model flat, stdcall
option casemap :none ; case sensitive

include \masm32\include\

include \masm32\include\
include \masm32\include\
include \masm32\m32lib\

includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\m32lib\masm32.lib

to send some txt to the consol just use Invoke StdOut, ADDR txt (from MASM32.LIB)
to receives some txt from consol use Invoke StdIn, ADDR buffer, SIZEOF buffer

readcloser to MASM32.lib help
and dont forget to link the exe with the /CONSOL param!!!!!

hope this will help:alright:
Posted on 2001-09-23 03:02:06 by NEMO
Thanks NEMO, that was just the information I was looking for:alright:
Now I can start coding :)
Posted on 2001-09-23 08:31:46 by Mel