Author Topic: How to remove the pause  (Read 10462 times)

Offline Leo.J90

  • Multiple posting newcomer
  • *
  • Posts: 30
  • Programming & Reverse Engineering
How to remove the pause
« 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
"Don't think about the work, think about the benefit"

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: How to remove the pause
« Reply #1 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How to remove the pause
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: How to remove the pause
« Reply #3 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"

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How to remove the pause
« Reply #4 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:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Leo.J90

  • Multiple posting newcomer
  • *
  • Posts: 30
  • Programming & Reverse Engineering
Re: How to remove the pause
« Reply #5 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!
"Don't think about the work, think about the benefit"