hi, guys

Is there any functions in Visual C++ which have the same function like DoEvents in VB or doEvents in Java?

I have to make the program get response to a windows message when it is running in a infinite loop.

Is there any fuction can achieve this?

thank u very much in advance!