Hide DOS command window

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Dust Commander
In need of some credit
In need of some credit
Posts: 4
Joined: Mon Apr 06, 2020 3:14 pm

Hide DOS command window

Post by Dust Commander » Mon Apr 06, 2020 3:25 pm

I am a newbie to wxWidgets. I am building an application with wxCrafter, Codelite and MinGW tdm64-1 5.1.0.

I created a basic windows gui application.

When I run the program, a dos window appears in addition to my Gui. How do I hide the dos window and keep it off the status bar?

Thanks,
Steve

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Hide DOS command window

Post by doublemax » Mon Apr 06, 2020 4:17 pm

This is a linker problem. Your app was built with "Subsystem: Console", while it should use "Subsystem: Windows".

I don't know CodeLite, so i don't know where to find that setting, but maybe this gets you on the right track.

https://stackoverflow.com/questions/444 ... -window-in
Use the source, Luke!

DavidHart
Site Admin
Site Admin
Posts: 3988
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Hide DOS command window

Post by DavidHart » Mon Apr 06, 2020 4:41 pm

Hi,

I don't use Windows and so I can't test it, but IIRC you need to open your Project Settings dialog on the first, 'General' tab, and tick the 'This program is a GUI application' box.

If I'm wrong, I suggest you ask on the CodeLite forum as this is a CodeLite-specific question.

Regards,

David

Dust Commander
In need of some credit
In need of some credit
Posts: 4
Joined: Mon Apr 06, 2020 3:14 pm

Re: Hide DOS command window

Post by Dust Commander » Thu Jun 11, 2020 12:34 pm

The solution is
1. Project Settings>General check This program is a GUI application
2. Project Settings>Linker Linker options add -mwindows

Post Reply