NO

Author Topic: turn off console window when running application  (Read 2530 times)

hypersimus

  • Guest
turn off console window when running application
« on: June 14, 2010, 07:57:59 AM »
hi,
i just tested running IUP toolkit with pelles c,
this source compiled and link successfully.

but problem is, whenever i double click to run this application, it would shows a command prompt window at the back, with the IUP window in front.

is there somehow somewhere there is a switch to turn off this feature? (like in freebasic, * found while searching for solution)

Quote
http://www.freebasic.net/forum/viewtopic.php?p=123099
The compiler option -s gui ensures no console window is created when
a program using iup is executed.

hypersimus

  • Guest
Re: turn off console window when running application
« Reply #1 on: June 14, 2010, 08:06:47 AM »
this is how they do it under MinGW

http://www.allegro.cc/forums/print-thread/594895

how about pelles c?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: turn off console window when running application
« Reply #2 on: June 14, 2010, 08:11:22 AM »
linker option -subsystem:windows
May the source be with you

hypersimus

  • Guest
Re: turn off console window when running application
« Reply #3 on: June 14, 2010, 08:17:26 AM »
oh,
thanks timovjl

setting -subsystem:windows and then entry point set to "main" works, just figured out. :) it works smooth now.