I am using MFC MSComms control to receive data from the serial port. I want a function to receive information from the serial port before it returns (wait for serial port events). I know that in Visual Basic DoEvents() method can be used to yield conrol to the operating system giving it a chance to process serial port events. What is the equivalent process
in MFC C++.

Thanks in anticipation
Farshad.