The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: StarsInTheSky on December 27, 2006, 09:23:18 PM

Title: Help, Trouble compiling demo 1
Post by: StarsInTheSky on December 27, 2006, 09:23:18 PM
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?
Title: Re: Help, Trouble compiling demo 1
Post by: hutch-- on December 27, 2006, 10:28:48 PM
Build it as a console app or you have no place to display the text.
Title: Re: Help, Trouble compiling demo 1
Post by: StarsInTheSky on December 27, 2006, 10:33:06 PM
Thanks!!

doing console link from qeditor works.

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

Title: Re: Help, Trouble compiling demo 1
Post by: hal9e3 on February 24, 2009, 12:23:02 AM
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)?
Title: Re: Help, Trouble compiling demo 1
Post by: hal9e3 on February 24, 2009, 12:59:06 AM
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!
Title: Re: Help, Trouble compiling demo 1
Post by: GregL on February 24, 2009, 03:29:02 AM
hal9e3 ,

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

Title: Re: Help, Trouble compiling demo 1
Post by: hutch-- on February 24, 2009, 07:55:17 AM
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.