Difference between Windows and Console application

后端 未结 7 1817
别跟我提以往
别跟我提以往 2020-11-27 04:10

What differences are there between Windows and Console applications ?

When creating a new project in Visual C++ , it asks to choose either of the above .

7条回答
  •  被撕碎了的回忆
    2020-11-27 04:28

    The difference is in the way the apps are stubbed out. When you use the console template, you have a stub that will fire up in a console. If you are already running in a console, it ignores the call to spin one up.

    By the same token, a windows app is designed with a default form. If you want to clear it out, you can create a formless Windows Forms application that is essentially a console application without a console window.

    As far as the guts of the app goes, they are essentially the same. The major difference is added on at the compile stage.

提交回复
热议问题