News:

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

Help, Trouble compiling demo 1

Started by StarsInTheSky, December 27, 2006, 09:23:18 PM

Previous topic - Next topic

StarsInTheSky

Hello,

I just started with loading console demo 1 and hitting assemble and link in qeditor.

I got a hello.exe with no errors.

Before I started I had ran the hello.exe and it produced a line saying "hey, this actually works"

Now, hello.exe produces no line. It just prints an empty line.

Any suggestions about whats wrong?

hutch--

Build it as a console app or you have no place to display the text.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

StarsInTheSky

Thanks!!

doing console link from qeditor works.

and I even figured out how to link it manually for console :)


hal9e3

I'm having a different problem.  I'm able to build and run programs such as regkey under examples.  However, the hello demo under demo1 builds OK but the console window doesn't persist.  I see it blink but it immediately disappears.  I'm doing all of my editing, building and running from qeditor.  BTW McAfee AV deleted one file, runcpl.exe, and quarantined two others, procmap.exe and l2def.exe.  runcpl is under examples and doesn't seem to compile.  I can't get McAfee to leave the other two unquarantined.  What is their function?  Would their absence be causing the runtime issues I'm experiencing (I would have expected a build issue if they were involved)?

hal9e3

N/M I guess.  Added "rhere: jmp rhere" after the print and the console stayed put.  There must be some sort of lib call to accomplish this - time to dig!

GregL

hal9e3 ,

Look at the wait_key procedure in the masm32 library. There is also an inkey macro in macros.asm that you could use.


hutch--

hal9e3,

To test the console app, start the console first then type the app name to run it. That is normal for a console mode app.

RE: The AV scanner problem, if you cannot turn the scanner off on clean files, get another one. In the MASM32 subforum is another subforum for AV vendor problems. Sound like yours is another poor qualkity AV scanner.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php