|
|
| Author |
Message |
|
|
maredsous10
Joined: 12 Feb 2010 Posts: 2
|
Posted: Fri Feb 12, 2010 8:53 pm Post subject: Prevent Windows Console ( cmd.exe ) From Popping Up |
|
|
When I launch my executable using GTK+ on Windows, a console window (cmd.exe) pops up. How do I prevent this?
I tried another suggestion on these forums, which discussed creating a dummy_handler for console messages. I didn't have any luck when I did that. |
|
| Back to top |
|
 |
tadeboro Never Seen the Sunlight
Joined: 23 Jul 2008 Posts: 2114 Location: Slovenia
|
Posted: Sat Feb 13, 2010 1:05 pm Post subject: |
|
|
Hello and welcome to the GTK+ forums.
On Windows, you need to inform compiler/linker (not sure which one exactly) that your application is not console application but GUI application. When using MinGW to compile your application, all you need to do is add -m windows flag to command line. I don't know about VisualC.
Tadej |
|
| Back to top |
|
 |
maredsous10
Joined: 12 Feb 2010 Posts: 2
|
Posted: Mon Feb 15, 2010 3:57 pm Post subject: |
|
|
Thanks. That worked for me.
I'm using a MinGW setup similar to your description on thread 1753. |
|
| Back to top |
|
 |
|