Borland C++ version issues...


I am just starting to learn C++, and recently bought  the Borland C++ compiler (5.02)

At school, we have an earlier version of Borland (I think 3. something) which, when you compile and run a program, it executes it in a windows envireonment, and does not close the window when the program is done running. It simply says it's "inactive."

Now that I have 5.02 at home, I wrote a simple program to try it out, and the Borland 5.02 I have at home opens the program in a DOS window and closes it out immediately after it is done running. I can't even see the message I wrote to myself!

So what is going on?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You command prompt is currently set-up to close the window when the program finishes.  You can change this setting, but it is easier to leave the setting the same and add some code that forces the program to wait for a return at the end like

int main ()

     *   *   *

   char Chr;
   cin >> Chr;
   return 0;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alternativly; set a breakpoint at the return statement in main
For get such effect, as in 3.1, you
must use EastWin mode to you
project(i think, you use console Apps).
In View|Project set mouse to you exe, press right button,chouse
TargetExpert and from Table
TargetType chose EasyWin[.exe]
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.