I am trying to write a program in Borland C++ Builder which communicates over a serial port to another device.

How can I stop program execution while the communication takes place and resume when I have my response?