• C

Borland Compiler 5.2

I recently upgraded from Borland 3.1 to 5.2 and when I run a code I have written it disappears when its done.  Not allowing me to see the output!  How do I keep it from disappearing?  This does not happen to version 3.1.

- newbie
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.

rockmagickAuthor Commented:
Edited text of question.
You means, may be, BC 5.02
I use it for make 32b apps. And 3.1 makes only
16b apps. In 32b some old functions work
a little different, than in 16b.
But it is "in general". In you case:
can you send snipped of you code,
that not works? Without code it is hard to say something...

rockmagickAuthor Commented:
Generally any code I use.  Like an options preferance thing used in 5.02.  Looked up in help files and menus and can't find an answer.  When the window is done running the code under debug/run.  It disappears by closing the box before I can read the output.
Just add getch(); function in the end of your program.
it will force the program to wait until a key is pressed.

the header file is conio.h

#include <conio.h>
void main()



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
rockmagickAuthor Commented:
Thank you, I do that now, but I wish there was some setting I could use instead.
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.