Hi All,
i have report generation process going in one tab for few minutes but what is happening if user clicks on some other tab or return button as process is going on it is crashing in mfc.
how to stop user no to do actions up to the process completion or any other better approach is there ?
the problem is i have do events function :
if i changed the tab some how the database pointer other is getting garabage and it is crashing.
What I have tried:
MSG msg;
while ( PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) )
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}