?
Solved

"Press enter to continue" Message

Posted on 2003-03-05
8
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

The well known Cerber ransomware continues to spread this summer through spear phishing email campaigns targeting enterprises. Learn how it easily bypasses traditional defenses - and what you can do to protect your data.
Introducing Priority Question, our latest feature.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

765 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