Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

"Press enter to continue" Message

Posted on 2003-03-05
8
Medium Priority
?
273 Views
Last Modified: 2010-04-16
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?
0
Comment
Question by:Narcisius
  • 4
  • 4
8 Comments
 
LVL 15

Expert Comment

by:VGR
ID: 8074735
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
0
 

Author Comment

by:Narcisius
ID: 8075651
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.
0
 
LVL 15

Expert Comment

by:VGR
ID: 8075727
then I have to assume that the CW environment INTRODUCES THIS MESSAGE at the end of the program !
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 

Author Comment

by:Narcisius
ID: 8076104
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.
0
 
LVL 15

Accepted Solution

by:
VGR earned 320 total points
ID: 8077899
hummmm
And can you launch the Turbo-Pascal IDE alone and compile as Exe your program, then see what's happening ?
0
 

Author Comment

by:Narcisius
ID: 8078081
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.....
0
 

Author Comment

by:Narcisius
ID: 8078085
gave you an A, seemed silly to do anything else..
0
 
LVL 15

Expert Comment

by:VGR
ID: 8078143
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...
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my humble opinion (IMHO), TouchDown from Symantec is the best in class for this type of application, but Symantec has end-of-lifed it and although one can keep using it, it will no longer be supported or upgraded.  Time to look for alternatives t…
Are you a startup company? Being a startup, you may be using shared hosting, or maybe even dedicated hosting. But have you ever given a thought to using cloud computing now? Yes, don’t be surprised, it is possible for startups to opt for cloud compu…
Loops Section Overview
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question