Menu

UI with console window on background

wxD
Rommi
2008-07-19
2013-05-22
  • Rommi

    Rommi - 2008-07-19

    I have compiled wxwidgets 2.6.4 and wxd 0.12 using mingw, gdc and cygwin on windows xp.
    But all wxd samples start with a console window at the background.
    Is this is a current "feature" of wxd or I have missed something?
    Is there any way to hide it?

     
    • torhu

      torhu - 2008-07-19

      A flag in the exe header decides whether to open a console or not.  There are some gcc options to disable the console:

      -mwindows

      but that's deprecated, the newer and longer one is:

      -Wl,subsystem,windows

      Or, if using ld directly:

      http://sourceware.org/binutils/docs/ld/Options.html#index-g_t_002d_002dsubsystem-295

      The corresponding msvc option is /subsystem:windows, others tool chains use variations of this.  msvc will also suppress the console by default if you define WinMain instead of main.

       
    • Rommi

      Rommi - 2008-07-20

      Thanks! It helped.

      It might be a good way to set these flags by default in supplied samples.

       

Log in to post a comment.