views:

43

answers:

1

(its a long story) but I have a large complex project file containing a windows program. Unfortunately the project was originally built as a console app. The program compiles and links ok but when runs brings up a console instead of the collection of windows I was hoping for. I looked at the command line and saw "/SUBSYSTEM:CONSOLE" whereas it should be "/SUBSYSTEM:WINDOWS". I have no idea how to change the command line. Is there some box I can tick in the project setting somewhere to make this change?

+3  A: 

Right-click the project, Properties, Linker, System, change the SubSystem setting. You'll also have to change your main() method to WinMain(). And you'd better create some windows or there won't be much to look at.

Hans Passant
Thanks - that's the right answer - and don't worry there is already a WinMain and some windows :-) .. BTW, I'm blocked from marking your answer correct for another 7 minutes...
Mick