Get message when excute a infinite loop
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. :rolleyes:
Is there any fuction can achieve this?
thank u very much in advance!
Re: Get message when excute a infinite loop
Quote:
Originally posted by jfk_lili
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. :rolleyes:
Is there any fuction can achieve this?
thank u very much in advance!
Code:
void CDlg::DoEvents()
{
MSG msg;
while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE ))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}