00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <windows.h>
00013 #include <winuser.h>
00014
00015 #include "win32-errormsg.h"
00016 #include "../util/messaginghub.h"
00017
00018
00019 void Win32IoErrorHandler::printError( const ASCString& msg )
00020 {
00021 MessageBox(NULL, msg.c_str(), "Error", MB_ICONERROR | MB_OK | MB_TASKMODAL );
00022 }
00023
00024 Win32IoErrorHandler::Win32IoErrorHandler()
00025 {
00026 MessagingHub::Instance().error.connect( SigC::slot( *this, &Win32IoErrorHandler::printError ));
00027 MessagingHub::Instance().fatalError.connect( SigC::slot( *this, &Win32IoErrorHandler::printError ));
00028 }
00029