The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Titan on February 02, 2005, 03:36:57 AM

Title: MASM Win32 Console Resources?
Post by: Titan on February 02, 2005, 03:36:57 AM
I think I remember some people using commands like print$("Text") or something like that when I was looking at some source code around here.  The thing is, I've never seen that before.  Is there somewhere you can direct me that might have some tutorials/resources on how to program win32 console applications?

Thanks,
Titan
Title: Re: MASM Win32 Console Resources?
Post by: Vortex on February 02, 2005, 10:41:54 AM
Hi Titan,

The print statement is a macro from Hutch's masm32 package. Have a look at c:\masm32\macros\macros.asm to view the source code. Also, you can check masm32.hlp with the help file to get information about uısefull console functions.
Title: Re: MASM Win32 Console Resources?
Post by: GregL on February 03, 2005, 01:21:32 AM
Titan,

Here is a good tutorial on Win32 Console programming. The source code is C++ but the concepts apply and the Win32 functions are the same.

http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html
Title: Re: MASM Win32 Console Resources?
Post by: MichaelW on February 03, 2005, 02:10:02 AM
 MSDN: Character-Mode Applications (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/character_mode_applications.asp)
Title: Re: MASM Win32 Console Resources?
Post by: hutch-- on February 03, 2005, 03:03:46 AM
Titan,

Have a look at the tutorials in MASM32 and how they use the macro system from masm32. Code like,


    cls
    print "Hello World"


Is contained in the masm32 macro system using the masm32 library that can produce very clean and simple code for console IO.
Title: Re: MASM Win32 Console Resources?
Post by: Titan on February 03, 2005, 03:42:50 AM
Thanks for your responses, I think I've gotten my answer. :U

And yep hutch, I found the great \tutorials\console\ directory with some excellent examples of using the console. :clap:

Thanks again,
Titan