elmera
asked on
Executing programs with Borland C++ 5.01
Hello, I have recenty picked up Borland C++ v5.01 after using v4.5 at our schools computer lab for a long time. My questiong is, how do I get programs to execute in v5.01 like they do in v4.5? When I used to run programs using v4.5, the program was run in a text based window, supplied by the borland compiler. Upon completion, this window would stay open and I would be able to print the output of my program. Now with v5.01, whenever I run a program, it is executed in a dos-shell window. Once the program is complete, the window immediately disappears. Is there something I can do to get v5.01 the execute programs the same way as v4.5? I am writing programs for one of my college classes and I need to print out the output and submit it. Can someone help me please... I hope I have specified enough info. Thanks in advance..
Andy
email:
corsair@vax1.mankato.msus. edu
Andy
email:
corsair@vax1.mankato.msus.
Do You produce DOS or Windows ( EasyWin ) .exe ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok.. I figured out how to change the taget type to EasyWin, however, now whenever I go to run the program I get message that says "cannot make" and nothing else about why... Actually I did get one program to run(somehow..) in the easywindow, but it said it couldn't debug 16-bit exe's. Can I change something so that the program can be debugged upon execution? Oh, and thanks for the info and selecting easywin.
(message for bc, pangofil, and os)
Andy
email:
corsair@vax1.mankato.msus. edu
(message for bc, pangofil, and os)
Andy
email:
corsair@vax1.mankato.msus.
I have to pass on EasyWindows ... sorry ...
os
os
I think that another way is to write getch() on your program and until you don't press any key the dos windows won't close.
good luck!
good luck!
If it's not to critical how the program works there are a couple of hacks you can use to keep the program active so you can examin its output. Another option is to put a loop in main() that tests for a certain key stroke and then exits.