From: Dean H. <her...@mi...> - 2007-06-30 03:22:25
|
>Date: Mon, 25 Jun 2007 20:19:50 -0400 >To: Jens Fisseler <Jen...@Fe...> >From: Dean Herington <her...@mi...> >Subject: Re: [Haskell-cafe] avoiding command window with wxHaskell on Windows? >Cc: has...@ha..., wxh...@li... > >At 10:10 PM +0200 6/23/07, Jens Fisseler wrote: >>On Sat, 23 Jun 2007, Dean Herington wrote: >> >>> But if I double-click the .exe file, I get a command window that >>>hangs around >>> (but doesn't appear to do anything, fortunately) until the >>>program terminates. >>> How can I avoid this command window? >> >>With gtk2hs, using "-optl-mwindows" as a command line option for GHC lets >>me get rid of this window. Perhaps it will do the same for wxHaskell? > >Yes, that did the trick! Thanks a lot! But now I've discovered that using "-optl-mwindows" creates a program that doesn't work when invoked from a command line. Is there any way to create a program that can work when invoked either from a command line or through double-clicking? Dean |