Very often I get people asking, how do you hide the command prompt / console window that appears when you run an executable written in c/c++? Especially when you're using a GUI and "that black window" turns out to be an eyesore...
While the command prompt can be useful for debugging purposes, it is not especially nice to have the end user see it. AND it takes up a slot on the (Windows) taskbar. To fix this, change the linker settings. In MSVC, go to Project > Properties > Configuration Properties > Linker > System > SubSystem and choose Windows (/SUBSYSTEM:WINDOWS). The command prompt shouldn't appear by default now.
I haven't tried this out on gcc, but it seems to support a --subsystem windows flag.
Labels
algorithm
allegro
anime
api
arcade
asdf
blender
books
boost
bootstrap
c
c++
CLR
cmake
cmd
common lisp
concepts
css
detective
emacs
free
games
graphical programming
graphics
gui
haskell
html
hyper-v
interpersonal skills
jade
jam
java
javascript
jni
jpostal
leadership
libpostal
library
linux
lsp
lsp-mode
management
maths
mingw
msvc
msys2
music
network
oop
open source
party games
phaser
postgresql
programming
promote
puzzle
quickfix
recommended
recorder
reference
review
sdl2
self-help
setup
sheet music
slime
team building
tidbits
tools
travel
tutorial
typescript
unity
vb
vm
web pages
winapi
windows
windows 7
windows 8.1
No comments:
Post a Comment