[Note: seems like I was unable to post this a few minutes ago. Sorry if it gets duplicated]
Hello,
In VisualC++ I have a program that calls DoEvents() and works just fine.
I moved the exact same code outside VisualC++, since I need it as a stand alone program. However, my DoEvents() now do cause linkage problems. These look like:
void DoEvents(void)
{
MSG msg;
while(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
DoEvents processes Windows Messages in the message queue. C++ does not have a one command counterpart. What can I do? I need a DoEvents in plain C++! Anyone knows?
Hello,
In VisualC++ I have a program that calls DoEvents() and works just fine.
I moved the exact same code outside VisualC++, since I need it as a stand alone program. However, my DoEvents() now do cause linkage problems. These look like:
void DoEvents(void)
{
MSG msg;
while(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
DoEvents processes Windows Messages in the message queue. C++ does not have a one command counterpart. What can I do? I need a DoEvents in plain C++! Anyone knows?