Re: Command Window with MSVC++ GTK apps



Matthew Yaconis writes:
I have a natively linux GTK+ application that I've ported to Win32 using
MSVC++.  The way I originally ported it causes the cmd window (that catches
all the printf type statements) to appear whenever running the application.
I thought there was some way to disable this but haven't been able to find
the solution.  Any suggestions?

add "/subsystem:windows" to the linking options. (If using gcc, it
would be "-mwindows".) Or run "editbin /subsystem:windows" on the .exe
file any time after linking.

--tml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]