Writing text to the console when a graphics window is open?

Windows specific questions.
Eponasoft
Posts: 264
Joined: Jul 26, 2007 2:40

Writing text to the console when a graphics window is open?

Postby Eponasoft » Feb 17, 2010 12:03

Can this be done with FBGFX active? PRINT directs to the gc when FBGFX is active, so that's out. The win32 API is probably the only way to do it. Does anyone have a working example?
fxm
Posts: 10196
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Postby fxm » Feb 17, 2010 12:20

Eponasoft
Posts: 264
Joined: Jul 26, 2007 2:40

Postby Eponasoft » Feb 17, 2010 12:24

Hrm ok, thanks. Does it have to be file handle 1 though? That's bad form otherwise...
Imortis
Moderator
Posts: 1744
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Postby Imortis » Feb 17, 2010 12:44

No. You can use any file handle you like.
Eponasoft
Posts: 264
Joined: Jul 26, 2007 2:40

Postby Eponasoft » Feb 17, 2010 12:49

OK good, so I can just use freefile then.
Imortis
Moderator
Posts: 1744
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Postby Imortis » Feb 17, 2010 14:01

Yep. Wiki confirms it. Even recommends it.

http://www.freebasic.net/wiki/wikka.php ... PgOpenCons
fxm
Posts: 10196
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Postby fxm » Feb 17, 2010 14:34

I agree.
See my proposed procedures : http://www.freebasic.net/forum/viewtopi ... 636#128636

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 3 guests