Мастер классических приложений Windows Windows Desktop Wizard
Мастер настольных систем Windows заменяет мастер приложений Win32 в Visual Studio 2017 и более поздних версиях. The Windows Desktop Wizard replaces the Win32 Application Wizard in Visual Studio 2017 and later. Мастер позволяет создавать любые из четырех типов проектов C++ (перечисленных в заголовке в таблице ниже). The wizard allows you to create any of four types of C++ projects (listed in the heading in the table below). В каждом случае можно указать дополнительные параметры, подходящие для открытого вами типа проекта. In each case, you can specify additional options that are appropriate for the type of project you open.
В таблице ниже показано, какие параметры доступны для каждого типа приложения. The following table indicates which options are available for each application type.
Тип поддержки Type of support | Консольное приложение Console application | Исполняемое приложение (Windows) Executable (Windows) application | Библиотека динамической компоновки Dynamic-link library | Статическая библиотека Static library |
---|---|---|---|---|
Пустой проект Empty project | Да Yes | Да Yes | Да Yes | Нет No |
Символы экспорта Export symbols | Нет No | Нет No | Да Yes | Нет No |
Предкомпилированный заголовок Precompiled header | Нет No | Нет No | Нет No | Да Yes |
поддержка ATL ATL support | Да Yes | Нет No | Нет No | Нет No |
поддержка MFC MFC support | Да Yes | Нет No | Нет No | Да Yes |
Общие сведения Overview
На этой странице мастера описываются текущие параметры проекта для создаваемого приложения Win32. This wizard page describes the current project settings for the Win32 application you are creating. По умолчанию заданы следующие параметры: By default, the following options are set:
проект является приложением Windows; The project is a Windows application.
проект не пустой; The project is not empty.
проект не содержит символов экспорта; The project contains no export symbols.
проект не использует файл предкомпилированного заголовка (этот параметр доступен только для проектов статической библиотеки); The project does not use a precompiled header file (this option is available for static library projects only).
проект не включает поддержку MFC и ATL. The project includes support for neither MFC nor ATL.
Тип приложения Application type
Создает указанный тип приложения. Creates the specified application type.
Параметр Option | Описание Description |
---|---|
Консольное приложение Console application | Создание консольного приложения. Creates a console application. Visual C++ библиотеки времени выполнения также предоставляют выходные и входные данные из окон консоли с помощью стандартных функций ввода-вывода, таких printf_s() как scanf_s() и. The Visual C++ run-time libraries also provide output and input from console windows with standard I/O functions, such as printf_s() and scanf_s() . Консольное приложение не имеет графического пользовательского интерфейса. A console application has no graphical user interface. Он компилируется в exe-файл и может запускаться как автономное приложение из командной строки. It compiles into an .exe file and can be run as a stand-alone application from the command line. Можно добавить поддержку MFC и ATL в консольное приложение. You can add MFC and ATL support to a console application. |
Приложение Windows Windows application | Создает программу Win32. Creates a Win32 program. Программа Win32 — это исполняемое приложение (EXE), написанное на C или C++, с использованием вызовов API Win32 для создания графического пользовательского интерфейса. A Win32 program is an executable application (EXE) written in C or C++, using calls to the Win32 API to create a graphical user interface. Нельзя добавить поддержку MFC или ATL в приложение Windows. You cannot add MFC or ATL support to a Windows application. |
Библиотека динамической компоновки Dynamic Link Library | Создает библиотеку динамической компоновки Win32 (DLL). Creates a Win32 dynamic-link library (DLL). DLL-библиотека Win32 — это двоичный файл, написанный на языке C или C++, который использует вызовы API Win32, а не классы MFC, который выступает в качестве общей библиотеки функций, которые могут одновременно использоваться несколькими приложениями. A Win32 DLL is a binary file, written in C or C++, that uses calls to the Win32 API rather than to MFC classes, and that acts as a shared library of functions that can be used simultaneously by multiple applications. Нельзя добавить поддержку MFC или ATL в приложение DLL, созданное с помощью этого мастера, но можно создать библиотеку DLL MFC, выбрав New > Project > MFC DLL. You cannot add MFC or ATL support to a DLL application created by using this wizard, but you can create an MFC DLL by choose New > Project > MFC DLL. |
Статическая библиотека Static library | Создает статическую библиотеку. Creates a static library. Статическая библиотека — это файл, содержащий объекты и их функции и данные, которые связываются с программой при создании исполняемого файла. A static library is a file containing objects and their functions and data that links into your program when the executable file is built. В этом разделе объясняется, как создать начальные файлы и Свойства проекта для статической библиотеки. This topic explains how to create the starter files and project properties for a static library. Файл статической библиотеки предоставляет следующие преимущества. A static library file provides the following benefits: — Статическая библиотека Win32 полезна, если приложение, над которым вы работаете, выполняет вызовы к API Win32, а не к классам MFC. — A Win32 static library is useful if the application you are working on makes calls to the Win32 API rather than to MFC classes. |
Дополнительные параметры Additional options
Определяет поддержку и параметры для приложения в зависимости от его типа. Defines the support and options for the application, depending on its type.
Параметр Option | Описание Description |
---|---|
Пустой проект Empty project | Указывает, что файлы проекта пусты. Specifies that the project files are blank. При наличии набора файлов исходного кода (например, CPP-файлов, файлов заголовков, значков, панелей инструментов, диалоговых окон и т. д.) и необходимости создания проекта в среде разработки Visual C++ необходимо сначала создать пустой проект, а затем добавить файлы в проект. If you have a set of source code files (such as .cpp files, header files, icons, toolbars, dialog boxes, and so on) and want to create a project in the Visual C++ development environment, you must first create a blank project, then add the files to the project. Этот выбор недоступен для проектов статической библиотеки. This selection is unavailable for static library projects. |
Символы экспорта Export symbols | Указывает, что проект DLL экспортирует символы. Specifies that the DLL project exports symbols. |
Предкомпилированный заголовок Precompiled header | Указывает, что в проекте статической библиотеки используется предварительно скомпилированный заголовок. Specifies that the static library project uses a pre-compiled header. |
Проверки жизненного цикла разработки безопасности (SDL) Security Development Lifecycle (SDL) checks | Дополнительные сведения об SDL см. в статье жизненный цикл разработки защищенных приложений (Майкрософт) (SDL) процессов . For more information about SDL, see Microsoft Security Development Lifecycle (SDL) Process Guidance |
Добавьте общие заголовки для: Add common headers for:
Добавлена поддержка одной из библиотек, представленных в Visual C++. Add support for one of the libraries supplied in Visual C++.
Параметр Option | Описание Description |
---|---|
ATL ATL | Встраивает в проект поддержку для классов в библиотеке активных шаблонов (ATL). Builds into the project support for classes in the Active Template Library (ATL). Только для консольных приложений Win32. For Win32 console applications only. Примечание . Этот параметр не указывает на поддержку добавления объектов ATL с помощью мастеров кода ATL. Note This option does not indicate support for adding ATL objects using the ATL code wizards. Объекты ATL можно добавлять только в проекты ATL или проекты MFC с поддержкой ATL. You can add ATL objects only to ATL projects or MFC projects with ATL support. |
MFC MFC | Встраивает в проект поддержку библиотеки Microsoft Foundation Class (MFC). Builds into the project support for the Microsoft Foundation Class (MFC) Library. Только для консольных приложений Win32 и статических библиотек. For Win32 console applications and static libraries only. |
Комментарии Remarks
Создав классическое приложение Windows, можно добавить универсальные классы C++ с помощью мастера универсального кода. Once you have created a Windows desktop application, you can add generic C++ classes using the Generic Code Wizard. Можно добавить другие элементы, такие как файлы HTML, файлы заголовков, ресурсы или текстовые файлы. You can add other items, such as HTML files, header files, resources, or text files.
Классы ATL добавить нельзя, а классы MFC можно добавить только в те типы классических приложений Windows, которые поддерживают MFC (см. предыдущую таблицу). You cannot add ATL classes, and you can add MFC classes only to those Windows desktop application types that support MFC (see the previous table).
Get started with Visual Studio
Watch: Setting up your IDE
Watch: Building your first app
Watch: Debugging your code
Watch: Tips & Tricks
Watch: Opening a project from Source
Visual Studio workloads
Install only the tool and component bundles you need for development in Visual Studio
Web & cloud
ASP.NET & web development
ASP.NET & web development
Build web applications using ASP.NET Core, ASP.NET (.NET Framework), HTML/JavaScript, and Containers including Docker support
Maximize your productivity developing .NET web applications using ASP.NET Core, standards-based technologies like HTML, and JavaScript.
– .NET Framework 4.x development tools
– .NET Core 2.1 development tools
– ASP.NET and web development tools
– .NET profiling tools
– Container development tools
– Cloud tools for web development
– IntelliSense, code navigation, and refactoring for C#, Visual Basic, and F#
Azure SDKs, tools, and projects for developing cloud apps, creating resources, and building Containers including Docker support
Easily build, test, deploy, and manage scalable apps and services on the Microsoft cloud. Install to view resources in Cloud Explorer, create resources using Azure Manage tools, build applications for Azure Web and Cloud Services, and perform big data operations using Azure Datalake tools.
– Azure development prerequisites
– .NET Framework 4.x development tools
– .NET Core 2.1 development tools
– ASP.NET and web development tools
– Container development tools
Editing, debugging, interactive development, and source control for Python
Support for building Python web applications using familiar frameworks including Django and Flask, and Data Science applications with built-in Conda and IPython support.
– Support for CPython, virtualenv, venv, and conda environments
– Rich editing, IntelliSense, and code comprehension
– Interactive (REPL) environment window
– Support for Python in open folder workspaces
– Project and item templates to simplify new project creating process
– Profiling and unit testing tools
– Manage Conda environments using Miniconda
– Live Share
Build fast and scalable applications using Node.js, a server-side JavaScript runtime environment
Easily build Node.js applications using web frameworks like Express and front-end frameworks like React.
– Project templates
– IntelliCode
– npm integration
– Interactive (REPL) environment window
– Local and remote advanced debugging
– Profiling tools to track performance
– Unit testing support
– TypeScript integration