Adrian
Adrian

Reputation: 20078

Hide console in eclipse

It is posible to create a project with no console in Eclipse? Or can I hide it so it doesnt appear at all ? I tried ShowWindow(), FreeConsole() but the console still appears for a fraction of a second. I also tried using WinMain,still no change. I know that I can do it in VS2010 by creating a Windows Application(not console), but it is posible in Eclipse too ?

Upvotes: 1

Views: 1360

Answers (1)

Collin Dauphinee
Collin Dauphinee

Reputation: 13993

Eclipse has to be passing /SUBSYSTEM:CONSOLE to the linker, if using WinMain is still giving you a console. Look in the settings for an option to change the parameters it invokes cl with and change /SUBSYSTEM:CONSOLE to /SUBSYSTEM:WINDOWS.

Upvotes: 1

Related Questions