Link to home
Start Free TrialLog in
Avatar of TropicalFish
TropicalFish

asked on

Difference between Close() and exit()?

Is there any difference between using TForm1->Close() and exit(0) in Borland C++ Builder 5?
Avatar of Esstu
Esstu

Close() will close the form, and if it's the main form, presumably the program will tidily end. exit() will terminate the program perhaps more abruptly. I'd recommend Close() for normal termination.
ASKER CERTIFIED SOLUTION
Avatar of lewy
lewy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial