?
Solved

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

Posted on 1997-02-22
1
Medium Priority
?
314 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
[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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

777 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