ARRGHH!! MessageBox call from a dll
-
Í have the following problem, my app (wtl exe)loads dll´s dynamically (also wtl NOT COM) which display dialogs(pages) on a client area of my main app (also a dialog). The problem that I´m having, is that when changing between pages I check for valid data before displaying the next/chosen page. This checking is performed in the dll(in the class that wraps the page), and on an error, should display a MessageBox. However, the messagebox is NOT Modal, and is destroyed after being visable for 1 second or so... 'I´ve even gone as far as changing my dll interface to take a HWND of the main apllication so that I can call the messagebox so... int nRet = ::MessageBox(hWndOfMainApplication,"Bollocks!", "Error!", MB_OKCANCEL | MB_TASKMODAL); I´m at my wits end and don´t know why this is happening, Any Ideas??? Thanks in advance Phil bum... and I thought I´d got rid of all the bugs :(