News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to remove the pause

Started by Leo.J90, September 08, 2009, 03:36:57 PM

Previous topic - Next topic

Leo.J90

how can i remove the pause that CB makes by default on a console program?
and also the 'process return and execution time'?

thanx
"Don't think about the work, think about the benefit"

Seronis

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.

MortenMacFly

Quote from: 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?
Simply setup the application type to "GUI" in the project setup.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

Quote from: 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

Activate your project, if it is not and then uncheck "Project -> Properties... -> Build targets -> [the target you use] -> Pause when execution ends"

MortenMacFly

Quote from: jens on September 08, 2009, 03:47:39 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:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Leo.J90

Quote from: 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.
I didn't realize. :D

Thanks everybody!
"Don't think about the work, think about the benefit"