its possible ?
i had tried ShowWindow(GetConsoleWindow(),SW_HIDE);
but dont work D:
Try using the forum's search feature. This question has been answered many, many times.
It depends on which IDE/compiler you use.
http://www.allegro.cc/forums/search/bc09a282b787770da1a84f9422efcfed
im using allegro5 and Microsoft Visual C++ 2010
Use /SUBSYSTEM:WINDOWS, not /SUBSYSTEM:CONSOLE.
In Code::Blocks and Dev-C++ you can just set the application to a GUI App. and the console window will not appear. If you were just trying to make a console that does something that you want to stay hidden, you could do something like this.
EDIT:: Visual C++. ew.
There's also a check box for it somewhere in VC++'s preferences IINM.
In Project properties:
Configuration properties -> Linker -> System
Change Subsystem to Windows.
Names may not be 100% exact since I have MSVC in Spanish and I'm translating to English myself.
Configuration properties -> Linker -> System
That's correct. More thoroughly:
Project -> [project name] Properties -> Configuration properties -> Linker -> System -> SubSystem
THANK YOU VERY MUCH!
the solution
Windows (/SUBSYSTEM:WINDOWS)