×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

borland 5.02

borland 5.02

borland 5.02

(OP)
i recently started using borland 5.02.
when compiling my programs and running them i get a DOS execution window
that flashs for a second and then disappears. can anyone tell me how
to keep the Dos window open so i can check out the execution.
thank u

RE: borland 5.02

Right-click the program's .exe file choose "Properties", then select the "Program" tab. Uncheck "Close on Exit".

Rob Marriott
robert_a_marriott@yahoo.com

Hire me! Full-time, contract, whatever...shhh don't let my current employer know I said that.

RE: borland 5.02

You mean from project window to right-click the .exe file?
But I couldn't find the program tab.

Albert

RE: borland 5.02

Another way is to simply put a couple of lines in just before the program ends that will wait until you press ENTER. For example:

char c;
cin >> c;

James P. Cottingham
www.ivcusa.com

RE: borland 5.02

Hey.
I have not checked any of the above answers but this is what I do to fix the problem.

Always create a project (New -> Project). Then, a console appears. After typing in the file name etc.
In the Target Type list box provided, choose EasyWin(.exe).
Platform should be set to Win 32. Under that, select GUI.
Under Frameworks, choose Class Library and OWL.
CLick the Advanced tab and choose .cpp node. Deselect .rd and .def nodes.
That should solve the problem, I hope.

Narayanan Srinivasan
coolie91@hotmail.com
 
Brothers and Sisters from India, if you have any recent news regarding F-1 to H-1B visa transfer, please e-mail me. Thanks.

RE: borland 5.02

declare a char in main()

before the closing } in main() cin>>"char variable name"

the dos execution window will stay open until you press a key and hit enter

RE: borland 5.02

Kind of an old thread, but another way would be to include the conio or constre header file and then use getch() to wait for a key to be hit.

example:
#include <constrea.h>

int main(){
   
   cout<<"Waiting for you to press a key to exit..."<<endl;
   getch();

   return 0;
}

This is a fairly nice way to solve your problem since you don't have to declare any extra variables.

happy programming!

RE: borland 5.02

  Open a "Dos Prompt" console first, then run your program.  This way your application is running within something and not by itself.
   At this point, you can also right-click on the Window's title bar, go to properties, and uncheck "Close on exit".  Apply this and then you can run your apps in future on their own.
   Hope this helps.

RE: borland 5.02

I've just got Borland 5.02, and am learning C++.  Can anyone tell me where I can get basic info on how to use Borland 5.02. It seems to be a very sophisticated tool.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close