CONSOLE Not Active

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
melliott42
Posts: 119
Joined: Wed Feb 18, 2009 2:14 pm

CONSOLE Not Active

Post 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
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: CONSOLE Not Active

Post by Ricci »

Take a look at the HMG3\SAMPLES\CONSOLE\
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

Re: CONSOLE Not Active

Post by jparada »

Hi,

I do something like this to generate console application

Code: Select all

build /cs myproject.hbp
HTH

Best Regards
Javier
melliott42
Posts: 119
Joined: Wed Feb 18, 2009 2:14 pm

Re: CONSOLE Not Active

Post 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?
melliott42
Posts: 119
Joined: Wed Feb 18, 2009 2:14 pm

Re: CONSOLE Not Active

Post by melliott42 »

jparada,

build /cs myproject.hbp

Yes that was it! :-)

Thanks,

Michael
Post Reply