News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

StdOut, StdIn, ClearScreen, etc.

Started by John, December 24, 2004, 05:45:32 PM

Previous topic - Next topic

John

I see that these (functions?) are used throughout the MACROS.ASM file for the various Macros. They are great and make it easy to write to and retrieve data from the console. Where do they come from though? Is it from MASM32.LIB?

I assume StdOut is just something like this:
invoke GetStdHandle, STD_OUTPUT_HANDLE
mov hStdOut, eax
invoke WriteFile,
           eax,
           ADDR Message,
           LENGTHOF Message,
           ADDR written,
           0

But what about the others, does the code come with MASM32?

Vortex

Hi John,

Just exactly as you said, those console functions are the members of masm32.lib
The source codes of masm32.lib can be found at C:\masm32\m32lib

hutch--

John,

They are procedures in the MASM32 library and they are their to make console coding easy and convenient. It is worth understanding how they word and once you do understand them, you can either write your own or use them if they do the job you need.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

John

Cool. Thanks guys.

hutch--,
Understanding them is precisely what I was looking to do  :U