How to hide the console windows ?
Chaos Maker

its possible ?
i had tried ShowWindow(GetConsoleWindow(),SW_HIDE);
but dont work D:

LennyLen

Try using the forum's search feature. This question has been answered many, many times.

Matthew Leverton
Chaos Maker

im using allegro5 and Microsoft Visual C++ 2010

Matthew Leverton

Use /SUBSYSTEM:WINDOWS, not /SUBSYSTEM:CONSOLE.

North~

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.

#SelectExpand
1HWND hidden_window; 2AllocConsole(); 3hidden_window=FindWindowA("ConsoleWindowClass",NULL); 4ShowWindow(hidden_window,NULL);

EDIT:: Visual C++. ew.

23yrold3yrold

There's also a check box for it somewhere in VC++'s preferences IINM.

Oscar Giner

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.

Mark Oates

Configuration properties -> Linker -> System

That's correct. More thoroughly:

Project -> [project name] Properties -> Configuration properties -> Linker -> System -> SubSystem

Chaos Maker

THANK YOU VERY MUCH!
:D
the solution
Windows (/SUBSYSTEM:WINDOWS)

Thread #607888. Printed from Allegro.cc