Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Leo.J90 on September 08, 2009, 03:36:57 pm

Title: How to remove the pause
Post by: Leo.J90 on September 08, 2009, 03:36:57 pm
how can i remove the pause that CB makes by default on a console program?
and also the 'process return and execution time'?

thanx
Title: Re: How to remove the pause
Post by: Seronis on September 08, 2009, 03:42:15 pm
CB doesnt build that into the executable.  It runs your executable thru a helper app that does the pause and message for informational purposes.  You'll notice if you navigate to your programs directory and run it manually thru the OS console window that neither the pause nor other msg is there.
Title: Re: How to remove the pause
Post by: MortenMacFly on September 08, 2009, 03:47:17 pm
how can i remove the pause that CB makes by default on a console program?
Simply setup the application type to "GUI" in the project setup.
Title: Re: How to remove the pause
Post by: Jenna on September 08, 2009, 03:47:39 pm
how can i remove the pause that CB makes by default on a console program?
and also the 'process return and execution time'?

thanx

Activate your project, if it is not and then uncheck "Project -> Properties... -> Build targets -> [the target you use] -> Pause when execution ends"
Title: Re: How to remove the pause
Post by: MortenMacFly on September 08, 2009, 03:57:37 pm
Activate your project, if it is not and then uncheck "Project -> Properties... -> Build targets -> [the target you use] -> Pause when execution ends"
...even better. :lol: :lol: :lol:
Title: Re: How to remove the pause
Post by: Leo.J90 on September 08, 2009, 04:21:59 pm
CB doesnt build that into the executable.  It runs your executable thru a helper app that does the pause and message for informational purposes.  You'll notice if you navigate to your programs directory and run it manually thru the OS console window that neither the pause nor other msg is there.
I didn't realize. :D

Thanks everybody!