?
Solved

Why does Borland C++ 5.0 run programs in a DOS window?

Posted on 1997-02-22
1
Medium Priority
?
323 Views
Last Modified: 2012-06-27
I'm new to version 5.0 and I can't figure out why, when I run a program, it opens a DOS window. Furthermore, the window closes right after execution so I can't even see the output. Any help would be appreciated.

John
0
Comment
Question by:jdidion
1 Comment
 
LVL 2

Accepted Solution

by:
tovergaard earned 200 total points
ID: 1162233
Borland C++ version 5.0 runs your program as a DOS program because the target of your program is DOS.

Change it to a Windows program in the TargetExpert if you want a Windows program (I think you it is best if you select easy Windows)

If your program don't require any user input, will the program run and close. Add a sort of pause, or wait for the user to hit a key.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

850 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