Code::Blocks Forums

User forums => Help => Topic started by: pel on December 30, 2007, 05:23:45 pm

Title: Running an .exe file within CB IDE is fine but outside the IDE its not working?
Post by: pel on December 30, 2007, 05:23:45 pm
Hello,

building and running the .exe file within the IDe is working, but when i am browsing to MyProjectfolder/bin/debug/myfile.exe and run the myfile.exe it shows up but entering anything the console windows is closing immediately , why?
Title: Re: Running an .exe file within CB IDE is fine but outside the IDE its not worki
Post by: eranif on December 30, 2007, 06:27:36 pm
Try to run it from within DOS shell and not from the Windows Explorer, C::B uses a wrapper (cb_console_runner.exe) which executes 'pause' when the program execution is done, so you get the 'hit any key to continue'.

Eran


Title: Re: Running an .exe file within CB IDE is fine but outside the IDE its not worki
Post by: pel on December 30, 2007, 06:57:13 pm
Try to run it from within DOS shell and not from the Windows Explorer, C::B uses a wrapper (cb_console_runner.exe) which executes 'pause' when the program execution is done, so you get the 'hit any key to continue'.

Eran



thank you that worked!