Page 1 of 1

CONSOLE Not Active

Posted: Tue Aug 24, 2010 7:36 pm
by melliott42
Hello,

Though my apps are very GUI using HMG I don't seem to be able to get anything to print\display to the console. I have tried these commands in various combinations with no luck.

Code: Select all

#include 'hmg.ch'
#include 'simpleio.ch'
#include 'hbrddsql.ch'

function main(cParam)
      Set Printer OFF
      SET DEVICE TO SCREEN

      Set Console ON

      ? "Hello World!"
      ?? "Hello World!"
      qOut("qOut")
      qqOut("qqOut")
      OutStd("OutStd")
      OutErr("OutErr")
return
What can you recommend?

Thanks,

Michael

Re: CONSOLE Not Active

Posted: Tue Aug 24, 2010 7:53 pm
by Ricci
Take a look at the HMG3\SAMPLES\CONSOLE\

Re: CONSOLE Not Active

Posted: Wed Aug 25, 2010 2:15 am
by jparada
Hi,

I do something like this to generate console application

Code: Select all

build /cs myproject.hbp
HTH

Best Regards
Javier

Re: CONSOLE Not Active

Posted: Wed Aug 25, 2010 11:22 am
by melliott42
Ricci,

Thanks. With that I do have @ 10,10 say 'Hello' working but still not standard console output commands like:

Code: Select all

      ? "Hello World!"
      ?? "Hello World!"
      qOut("qOut")
      qqOut("qqOut")
      OutStd("OutStd")
      OutErr("OutErr")
What can yo recommend?

Re: CONSOLE Not Active

Posted: Wed Aug 25, 2010 12:42 pm
by melliott42
jparada,

build /cs myproject.hbp

Yes that was it! :-)

Thanks,

Michael