Solved

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

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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…
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 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.

734 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