Languages :: Pascal :: "Press enter to continue" Message |
|||
| By: collegeBoy |
Date: 05/03/2003 00:00:00 |
Points: 80 | Status: Answered Quality : Excellent |
|
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? |
|||
| By: VGR | Date: 05/03/2003 19:44:00 | Type : Comment |
|
| 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 |
|||
| By: collegeBoy | Date: 05/03/2003 20:43:00 | Type : Comment |
|
| 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. |
|||
| By: VGR | Date: 05/03/2003 20:52:00 | Type : Comment |
|
| then I have to assume that the CW environment INTRODUCES THIS MESSAGE at the end of the program ! |
|||
| By: collegeBoy | Date: 05/03/2003 20:59:00 | Type : Comment |
|
| 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. |
|||
| By: VGR | Date: 05/03/2003 21:34:00 | Type : Answer |
|
| hummmm And can you launch the Turbo-Pascal IDE alone and compile as Exe your program, then see what's happening ? |
|||
| By: collegeBoy | Date: 05/03/2003 22:31:00 | Type : Comment |
|
| 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..... |
|||
| By: collegeBoy | Date: 05/03/2003 22:31:00 | Type : Comment |
|
| gave you a +++, seemed silly to do anything else.. |
|||
| By: VGR | Date: 05/03/2003 22:47:00 | Type : Comment |
|
| 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... |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








