diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Main.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Main.cc b/lib/Main.cc index e7dd5d2..c9cb87c 100644 --- a/lib/Main.cc +++ b/lib/Main.cc @@ -17,7 +17,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Main.cc,v 1.9 2003-12-04 04:09:02 pixel Exp $ */ +/* $Id: Main.cc,v 1.10 2004-11-21 14:51:31 pixel Exp $ */ + +#ifdef _WIN32 +#include <windows.h> +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -57,6 +61,9 @@ int Main::truemain(Main * Application, int argc, char ** argv, char ** enve) { r = e.GetCode(); } catch (GeneralException e) { +#ifdef _WIN32 + MessageBox(0, e.GetMsg(), "Application caused an exception", MB_ICONEXCLAMATION | MB_OK); +#endif Base::printm(M_ERROR, _("The application caused an exception: %s\n"), e.GetMsg()); return -1; } |