From e8fc656ff2eef558d25484b2ed633f872fb0b6d8 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 21 Nov 2004 14:51:31 +0000 Subject: Adding win32 exception window on exit. --- lib/Main.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') 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 +#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; } -- cgit v1.2.3