News:

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

Using ECHO with a windows project in VS express 2005?

Started by ThoughtCriminal, December 30, 2006, 04:35:08 AM

Previous topic - Next topic

ThoughtCriminal

I have not used macros much and only under console mode apps.  According to MSDN:

ECHO Displays message to the standard output device (by default, the screen)

So what screen?  My app window, no.  The output window? No.  Do I need to add a console to my app?

Here is a sample macro to get full set bits for OPATTR:

look MACRO i:REQ
   local temp
   temp TEXTEQU %OPATTR (i)
   %ECHO temp
ENDM      
      
look [esp]

Shout direct the output to the "screen".  I cant find what screen is is directing to.

Thanks.


Tedd

It's the console window that appears and shows messages while assembling.
If you're using an IDE then these messages will probably be captured and displayed in some window (in VS that is the compile window at the bottom.)

Quote
  Syntax:   ECHO message

  Description:
     Displays message during assembly. The message is usually output to
     the screen, but you can redirect it to a file or another device.
     This directive can help show which statements were assembled. %OUT
     is a synonym for ECHO and is included for compatibility.

     The <message> is any line of ASCII characters up to but not
     including any comment on the line. If angle brackets are used to

     enclose <message>, the angle brackets are displayed. To perform
     macro substitution, put the macro substitution operator (%) at the
     beginning of the line. Use a separate ECHO directive for each line.

     To output the time and date of assembly, insert this line in your
     source code:

        % ECHO       Assembled on @Date at @Time
No snowflake in an avalanche feels responsible.

ThoughtCriminal

Thanks for the help Tedd. 

Seems I kept looking in the wrong place.

View --> Output is the location of the window.  I was looking under Windows and Debug --> windows.