Console is still shown with WinMain entry point in C++ using Netbeans -


this question has answer here:

i'm trying make small application starts application depending on command line parameters.

i using winmain entry point this:

bool winmain(hinstance hinstance, hinstance hprevinstance, lpstr commandline, int ncmdshow) {     ... } 

but still see console window.

how can make sure no console window ever drawn when running application?

  1. how configure netbeans in order so?
  2. do have change abovementioned code? if yes, must changed or added?

ps: can hide console window showwindow(getconsolewindow(), sw_hide), still see console window fraction of second. want make sure console window never shown.

the code fine. compiler flag -mwindows trick.

to set compiler flag following:

  1. right-click project, click properties
  2. click on c++ compiler in category build
  3. add -mwindows in line additional options
  4. click ok , rebuild project.

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -