diff options
author | hobbs <hobbs> | 1999-11-10 02:56:42 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-11-10 02:56:42 (GMT) |
commit | c0bef5bd33ea453a9deb09af18deb2ba263b4e5b (patch) | |
tree | e9118be9b680b67b019424a1eced9fe109694859 /win/winMain.c | |
parent | 8020027ee76699a95ec4005e0c56b22b4a90a022 (diff) | |
download | tk-c0bef5bd33ea453a9deb09af18deb2ba263b4e5b.zip tk-c0bef5bd33ea453a9deb09af18deb2ba263b4e5b.tar.gz tk-c0bef5bd33ea453a9deb09af18deb2ba263b4e5b.tar.bz2 |
* win/winMain.c: corrected winMain to not do a DebugBreak when
returning an error message from the top level
Diffstat (limited to 'win/winMain.c')
-rw-r--r-- | win/winMain.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/win/winMain.c b/win/winMain.c index 54cda5f..cd80bbe 100644 --- a/win/winMain.c +++ b/win/winMain.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: winMain.c,v 1.7 1999/04/28 18:18:07 redman Exp $ + * RCS: @(#) $Id: winMain.c,v 1.8 1999/11/10 02:56:42 hobbs Exp $ */ #include <tk.h> @@ -171,7 +171,11 @@ Tcl_AppInit(interp) return TCL_OK; error: - WishPanic(Tcl_GetStringResult(interp)); + MessageBeep(MB_ICONEXCLAMATION); + MessageBox(NULL, Tcl_GetStringResult(interp), "Error in Wish", + MB_ICONSTOP | MB_OK | MB_TASKMODAL | MB_SETFOREGROUND); + ExitProcess(1); + /* we won't reach this, but we need the return */ return TCL_ERROR; } |