Console is still shown with WinMain entry point in C++ using Netbeans -
this question has answer here:
- win32 programming hiding console window 7 answers
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?
- how configure netbeans in order so?
- 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:
- right-click project, click properties
- click on c++ compiler in category build
- add
-mwindows
in line additional options - click ok , rebuild project.
Comments
Post a Comment