Skip to content

Commit 990efaf

Browse files
authored
Merge pull request #5644 from MicrosoftDocs/main
8/13/2024 AM Publish
2 parents 612e650 + b00572a commit 990efaf

7 files changed

+92
-16
lines changed

docs/build/how-to-create-a-cpp-project-from-existing-code.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
---
22
description: "Learn more about: How to: Create a C++ Project from Existing Code"
33
title: "How to: Create a C++ Project from Existing Code"
4-
ms.date: "05/06/2019"
4+
ms.date: 08/12/2024
55
helpviewer_keywords: ["C++, creating projects from existing code", "Create New Project From Existing Code Files Wizard, project settings"]
66
f1_keywords: ["vc.appwiz.importwiz.location", "vc.appwiz.importwiz.appsettings", "vc.appwiz.importwiz.debugsettings", "vc.appwiz.importwiz.releasesettings"]
7-
ms.assetid: e328a938-395c-48ea-9e35-dd433de12b31
87
---
98
# How to: Create a C++ Project from Existing Code
109

11-
In Visual Studio, you can port existing code files into a C++ project using the **Create New Project From Existing Code Files** wizard. This wizard creates a project solution that uses the MSBuild system to manage source files and build configuration. It works best with relatively simple projects that do not have complex folder hierarchies. The wizard isn't available in older Express editions of Visual Studio.
10+
In Visual Studio, you can port existing code files into a C++ project using the **Create New Project From Existing Code Files** wizard. This wizard creates a project solution that uses the MSBuild system to manage source files and build configuration. It works best with relatively simple projects that don't have complex folder hierarchies. The wizard isn't available in older Express editions of Visual Studio.
1211

1312
Porting existing code files into a C++ project enables the use of native MSBuild project management features built into the IDE. If you prefer to use your existing build system, such as nmake makefiles, CMake, or alternatives, you can use the Open Folder or CMake options instead. For more information, see [Open Folder projects for C++](open-folder-projects-cpp.md) or [CMake projects in Visual Studio](cmake-projects-in-visual-studio.md). Both options let you use IDE features such as [IntelliSense](/visualstudio/ide/using-intellisense) and [Project Properties](working-with-project-properties.md).
1413

1514
### To create a C++ project from existing code
1615

16+
The following instructions assume that Visual Studio is running and is past the start page. If you are on the Visual Studio start page, choose **Continue without code** to open the IDE.
17+
1718
1. On the **File** menu, select **New** > **Project From Existing Code**.
19+
1. The **Create New Project from Existing Code Files** wizard opens. Choose what type of project to create from the dropdown: **Visual C++**, **Visual Basic**, or **C#**. Then choose **Next** to continue.
1820

21+
:::image type="complex" source="./media/create-from-existing-code-wizard.png" alt-text="Screenshot showing the Create New Project from Existing Code dialog.":::
22+
The project type dropdown shows the options Visual C++ (which is selected), Visual Basic, and C#.
23+
:::image-end:::
1924
1. Specify your project location, the directory for your source files, and the kinds of files the wizard imports into the new project. Choose **Next** to continue.
2025

2126
| Setting | Description |
@@ -58,7 +63,8 @@ Porting existing code files into a C++ project enables the use of native MSBuild
5863
> [!NOTE]
5964
> The **Build**, **Rebuild**, **Clean** command line, and **Output (for debugging)** settings are only enabled if the **Use external build system** option is selected on the **Specify Project Settings** page.
6065
61-
1. Specify the Release configuration settings to use, these settings are the same as the Debug configuration settings. Choose **Finish** to generate the new project.
66+
1. Specify the Release configuration settings to use, these settings are the same as the Debug configuration settings.
67+
1. Choose **Finish** to generate the new project.
6268

6369
> [!NOTE]
6470
> Here you can check **Same as Debug configuration** to specify that the wizard will generate Release configuration project settings identical to Debug configuration project settings. This option is checked by default. All other options on this page are inactive unless you uncheck this box.
Loading

docs/overview/cpp-conformance-improvements.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "C++ conformance improvements in Visual Studio 2022"
33
description: "Microsoft C++ in Visual Studio is improving standards conformance and fixing bugs regularly."
4-
ms.date: 06/06/2024
4+
ms.date: 08/08/2024
55
ms.service: "visual-cpp"
66
ms.subservice: "cpp-lang"
77
---
@@ -15,6 +15,23 @@ For changes in Visual Studio 2019, see [C++ conformance improvements in Visual S
1515
For changes in Visual Studio 2017, see [C++ conformance improvements in Visual Studio 2017](cpp-conformance-improvements-2017.md).\
1616
For changes in older versions, see [Visual C++ What's New 2003 through 2015](../porting/visual-cpp-what-s-new-2003-through-2015.md).
1717

18+
## <a name="improvements_1711"></a> Conformance improvements in Visual Studio 2022 version 17.11
19+
20+
Visual Studio 2022 version 17.11 has the following conformance improvements, bug fixes, and behavior changes in the Microsoft C/C++ compiler.
21+
22+
For an in-depth summary of changes made to the Standard Template Library, including conformance changes, bug fixes, and performance improvements, see [STL Changelog VS 2022 17.11](https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1711).
23+
24+
### Print blank lines with `println`
25+
26+
Per [P3142R0](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3142r0.pdf), it's now easy to generate a blank line with `println`. This feature is available when compiling with `/std:c++latest`.
27+
Before this change, you wrote: `println("");` Now you write: `println();`.
28+
- `println();` is equivalent to `println(stdout);`
29+
- `println(FILE* stream);` is equivalent to `println(stream, "\n");`
30+
31+
### Implemented `range_formatter`
32+
33+
Per [P2286R8](https://wg21.link/P2286R8), `range_formatter` is now implemented. This feature is available when compiling with `/std:c++latest`.
34+
1835
## <a name="improvements_1710"></a> Conformance improvements in Visual Studio 2022 version 17.10
1936

2037
Visual Studio 2022 version 17.10 has the following conformance improvements, bug fixes, and behavior changes in the Microsoft C/C++ compiler.
62.4 KB
Loading
Loading
Loading

0 commit comments

Comments
 (0)