Difference between Windows and Console application

后端 未结 7 1814
别跟我提以往
别跟我提以往 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:30

    Besides the difference mentioned by Konrad, console and Windows applications behave differently when called interactively from the command prompt:

    When you start a console application, the command prompt doesn't return until the console application exits. When you start a windows application, the command returns immediately.

    This is not true for batch files; they will always wait until the application exits. (You can always use the start command to start an application without waiting.)

提交回复
热议问题