Link to home
Start Free TrialLog in
Avatar of Narcisius
Narcisius

asked on

"Press enter to continue" Message

Ok well I am doing alot of programming for school now, I have been flipping back and forth from C++ to Pascal.  For C++ coding I have been using Visual Studio which I do like.  For Pascal I have been using Code Warrior 4, mostly because that is what the school wants us to use.  However when I compile a program in code warrior you always get the "Please press enter to continue" message, even if the program is executed outside of code warrior.  This presents a problem.  In Visual C++, that message did appear when you were inside the Visual Studio interface for obvious debugging and checking reasons.  However if I am going to write programs that do batch file manipulation or just regular programs for that matter I need them to just end when they are finished.  I know this is a minor point to some people but I really think it is silly that code warrior does this.  Please does anyone know how to fix this?
Avatar of VGR
VGR

it's the message of end-of-execution when in an IDE (so that people may see the "DOS" window at program temrination before it closes and you're back in the IDE"
I don't know what is Code Warrior 4, but I suspect you've some kind of Pascal Compiler !
So go into "DOS" console (so-called "command line"), find the place where is the executable generated by CW, and run it. You should NOT have the "press any key" message. If you've, just drop CW and take a Turbo-Pascal or Delphi :D :D
Avatar of Narcisius

ASKER

I realize that signals the end-of-execution withen an IDE.  Codewarrior is a Turbo Pascal compiler, along with other languages, and it is actually pretty common.  Besides the fact that is what we are using in the class so I have to use it.  And I already tried executing it outside of the IDE enviroment, of course.  As much as I appreciate your time in commenting you didn't say anything I didn't already know.  Thanks for the attempt though.
then I have to assume that the CW environment INTRODUCES THIS MESSAGE at the end of the program !
That was my thought, however that seems silly from a developmental stand point.  You are crippling your compiler by not leting it be self terminiating. Normally I might toss this up to stupidity, lord know there is plenty of that in the word, but in this particular case it seems to make CW useless in the real world.  I just don't see them doing that.  Is there anyone that is familiar with CW that could answer this question.  Something makes me think that you can turn this option off in the "Console settings" dialoge within a particular project, mostly because that is where I would put it.  I have been looking through it but I can't seem to find anything that pertains to that.
ASKER CERTIFIED SOLUTION
Avatar of VGR
VGR

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I actually have decided that I am much much better in C++ so I am just going to do my project in that.  At least the portions that I need user indepented batch processing, and things like that.  My prof said that was fine since niether he nor any of the other proffesors knew how to fix the problem.  Thank you for your help, I guess I will give you the points since you are the only one that tried.....
gave you an A, seemed silly to do anything else..
sorry to have not found the cause of the problem remotely 8-)
Never encountered this in standard TPascal
Anyway, I still think Turbo-Pascal is the best tool from TP 3.0 onwards to do DOS, Graphics and Console applications...