diff options
author | pixel <pixel> | 2004-11-21 14:51:31 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-11-21 14:51:31 +0000 |
commit | e8fc656ff2eef558d25484b2ed633f872fb0b6d8 (patch) | |
tree | e40aeb51930b64432ad6663ed755c95af1dcae4f | |
parent | c5e312b1d6beadfafbd3c053be03b345ff592e53 (diff) |
Adding win32 exception window on exit.
-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; } |