C++: Hiding the console

So I'm really dumb; spent more than a month trying to find this but I figured I'd save someone the trouble of searching Google for it:

Anyway, to hide the console window all you do is add FreeConsole(); as the 1st thing inside the typical int main(){}.
Again, maybe I'm stoopid but I don't really care; maybe this post will only be useful for myself BUT I DON'T CARE so bye guys, I'm making an *** of myself

Filetestingman
Note that you can just create a Win32 project if you don't want any window to be created.
Yes but I wanted a minimum amount of code, and I only use the command line compiler not the UI. The VC compiler cuts the size down from MinGW by half(I.e., 101Kb to 54.3Kb) too, I think(Those were just guesses)
Last edited on
Or you could just link the program with the windows subsystem.

#pragma comment(linker, "/SUBSYSTEM:windows")
Topic archived. No new replies allowed.