[Mono-list] Re: [Gtk-sharp-list] Dos window - when launch app on
Win32 OS - how to remove it ?
Todd Berman
tberman at off.net
Fri Jul 15 05:06:34 EDT 2005
On Fri, 2005-07-15 at 10:31 +0200, Francis Brosnan Blazquez wrote:
> El vie, 15-07-2005 a las 00:45 -0700, Todd Berman escribió:
> > On Fri, 2005-07-15 at 03:45 -0400, ted leslie wrote:
> > > I just started using GTK# with mono and was happy that a
> > > small little app worked on my linux OS.
> > > I moved it to Win2000 and ran it (after installing gtk# runtime)
> > > and it works!!! but it brings up a dos window (cmd window?)
> > > as well as my GUI window.
> > > I don't use Windows to often, but i have to check to make sure what I
> > > create in mono/gtk# that I run on Linux, will run on Windows ...
> > > I remember something about setting an app to run via console in a older Win OS
> > > but I don't see that as an option under properties on Win2000 (on the app icon on desktop),
> > > so is the cmd console coming up by default via gtk#/mono? and if so, how can i get rid of
> > > it? I thought it might be coming up as a result of some Console.write's so i nuked them,
> > > so nothing is going out to STDOUT, but it didn't change it, the cmd console still pops
> > > up in addition to my GUI app.
> > > Anyone know how to stop this?
> >
> >
> > build your executable with /target:winexe instead of /target:exe
>
> Todd,
>
> Maybe I'm wrong but on windows installation it isn't posible to disable
> dos command box while starting mono application.
>
Yes, you are wrong.
> Even setting /target:winexe. On Linux station, this works ---well
> actually on linux station a console never is showed while starting any
> application--- but on windows, /target option only disables that the dos
> box opened doesn't write out info to the console. However it keeps on
> getting showed.
>
> It would be great to ear someone who have managed to disable this dos
> box on windows platforms.
>
Hey, buddy.
Guess what?
You just did.
Thats right, we successfully run .net applications using gtk# compiled
with mcs on ms.net with gtk# without a dos box, and all we do is build
with /target:winexe.
But thanks for the benefit of the doubt.
It might not work on *MONO* on win32, but I have never tested that, and
anyway, you are kinda insane for using it IMO.
If it isn't possible on mono on win32, that is a mono bug, as mcs will
generate executables that don't show a dos box when running on ms.net
just fine.
--Todd
More information about the Mono-list
mailing list