Solved

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

Posted on 1997-02-22
1
311 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 100 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

Technology Partners: 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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

695 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