简体   繁体   English

Win32 控制台应用程序

[英]Win32 Console Application

I have the VS2017 community and I am lost: the Win32 Console Application is missing.我有VS2017社区,但我迷路了:缺少 Win32 控制台应用程序。

I don't even have template when I go to New Project and also I cannot create C++ Empty Project in VS2019.当我 go 到新项目时,我什至没有模板,而且我无法在 VS2019 中创建 C++ 空项目。

I download almost everything from installer.我从安装程序下载了几乎所有内容。

How I can solve it?我该如何解决? !

The Win32 templates have been renamed to Windows Desktop. Win32 模板已重命名为 Windows Desktop。

In VS2017, If you want to create the Win32 Console Application,I suggest you could choose File->New->Project.在 VS2017 中,如果你想创建 Win32 控制台应用程序,我建议你可以选择 File->New->Project。 And then choose Windows Desktop Wizard .As shown below:然后选择Windows Desktop Wizard 。如下图:

在此处输入图像描述

If you want to create Win32 Console Application, you could select Console Application(.exe) in Application type.如果你想创建 Win32 控制台应用程序,你可以在应用程序类型中 select Console Application(.exe) If you want to create the Empty Project, you could check Empty Project如果你想创建空项目,你可以检查Empty Project

在此处输入图像描述

In vs2019, if you want to create a Win32 console application, the steps are similar to in vs2017: 1,From the main menu, choose File > New > Project to open the Create a New Project dialog box.在 vs2019 中,如果要创建 Win32 控制台应用程序,步骤与 vs2017 类似: 1、在主菜单中,选择“文件”>“新建”>“项目”,打开“新建项目”对话框。

2,At the top of the dialog, set Language to C++, set Platform to Windows, and set Project type to Desktop. 2、在对话框的顶部,将Language设置为C++,将Platform设置为Windows,并将Project type设置为Desktop。

3,From the filtered list of project types, choose Windows Desktop Wizard 3、从过滤的项目类型列表中,选择Windows Desktop Wizard

在此处输入图像描述

4,Under Application type, select Desktop application (.exe). 4,在应用程序类型下,select 桌面应用程序(.exe)。 Under Additional options, select Empty project.在附加选项下,select 空项目。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM