Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

win32-errormsg.cpp

Go to the documentation of this file.
00001 
00002 /***************************************************************************
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  ***************************************************************************/
00010 
00011 
00012 #include <windows.h>
00013 #include <winuser.h>
00014 
00015 #include "win32-errormsg.h"
00016 #include "../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 

Generated on Tue Jun 24 01:27:56 2008 for Advanced Strategic Command by  doxygen 1.4.2