[Mono-list] Re: [Gtk-sharp-list] Dos window - when launch app on Win32 OS - how to remove it ?

Francis Brosnan Blazquez francis at aspl.es
Fri Jul 15 04:31:09 EDT 2005


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.

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.

Best regards,

> 
> --Todd
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
> 
-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.



More information about the Mono-list mailing list