Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now