Creating a Console App with No Console

Started by
2 comments, last by Drew_Benton 18 years, 9 months ago
Does anyone know the trick to compile a console application with no console in Visual C++ 2003?

Looking for a serious game project?
www.xgameproject.com
Advertisement
You mean - not pop up a console window when it runs? I don't know, however you could make a win32 app that dosn't create a window - it would have the same effect.
look here.


I haven't tried it with VC 2003, though, .... but it should work.
Greenspun's Tenth Rule of Programming: "Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified bug-ridden slow implementation of half of Common Lisp."
Quote:Original post by void*
look here.


I haven't tried it with VC 2003, though, .... but it should work.


Yeap, that's how you do it:
#pragma comment(linker,"/SUBSYSTEM:WINDOWS")

This topic is closed to new replies.

Advertisement