UI with console window on background

  • 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:


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


      Or, if using ld directly:


      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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks