You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update open-wopen.md
Clarify that _O_TEMPORARY sets FILE_SHARE_DELETE.
* Update other pages that mention _O_TEMPORARY effects.
* New article - IDL method wizard
* update after review
* update after review
* Update after review
* Update after review
* Updating - Add property wizard for VS2022
* Updating broken links
* Update after review
* New article - Add an IDL Property
* link updation
* Update after review
* update after review
* update after review
* New article - IDL MFC property wizard
* Broken link fixed
* Broken link fixed
* Update virtual-functions.md
* update for links
* Updating links
* Address cpp-docs 3780 3782 3790 3791 3805
* Attempt correction of table format
* Add documentation for compiler error C2956 and update error text (MicrosoftDocs#4176)
* Add documentation for compiler error C2956 and update error text
* Add TOC entry
* Update for grammar and my own comprehension.
Sometimes, you just get carried away. This version could use some simplification.
* Simplify.
Address remarks, attempt simplification.
Acrolinx all the things.
* More updates per review
Co-authored-by: Colin Robertson <corob@microsoft.com>
* Address cpp-docs 3816
* Address non-blocking issues from 4207
* fix for sample program.
* edits
* edit pass. Move to ide location
* minor edit
* fix link
* Final update
* final update
* final update
* resolving blocking issue
* resolving blocking issue
* ToC update for new article
* ToC update
* link update
* Correct inconsistent formatting for the `_O_EXCL` constant in the docs for the open functions
* Update c28195.md
* Update in alt-text
* Update in alt-text
* Final Update- See also section
* edit pass
* edit pass
* more cleanup
* typo
* small edit
* Final update
* edit pass
* edit pass
* formatting for scannability
* acrolinx
* one more try at spacing
* final update
* VMCS -> VMXON
According to the intel IA32 development manual (Volume 3 C3 23.7):
"Before executing VMXON, software should allocate a naturally aligned 4-KByte region of memory that a logical
processor may use to support VMX operation. This region is called the VMXON region."
* edit and add links
* fix links
* add code example
* click->tick
* Update date, link to Intel docs
* Another go at updating the description
* Fix stray double-quote
* Address issue in DD PR 1393452
* add /interface and /internal-partition - draft (MicrosoftDocs#4227)
* add /interface and /internal-partition - draft
* add example
* fix formatting
* update text regarding example
* tech review
* link updates
* fix switch name and link
* edits
* reorder version info
* cleanup
* add /tp flag
* fix command line
Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com>
* Update os-ot-favor-small-code-favor-fast-code.md
Change "minimize or maximize size" to "minimize size or maximize speed"
* Expand into a whole SEO-friendly sentence
* Clarify when _matherr will be invoked (#4230)
Customer here https://developercommunity.visualstudio.com/t/_matherr-example-does-not-work-for-me/1676341#T-ND10016474 expressed confusion over when _matherr is called. This change points out that the only setting that will enable/disable this is the presence of _matherr, but it will not be triggered when using intrinsics.
* acrolinx and other fixes
* fix typo
* more code escape
* another code escape
* better formatting for retval possibilities
* fix backslashes
* incorp feedback
* SEO work
* acrolinx
* SEO work (MicrosoftDocs#4234)
* SEO work
* acrolinx
Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com>
* SEO work
* incorp feedback
* better link description
* incorp review feedback
* fix location of graphic
Co-authored-by: Steve Wishnousky <stwish@microsoft.com>
Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com>
Co-authored-by: opbld15 <opbld15@microsoft.com>
Co-authored-by: Colin Robertson <corob@microsoft.com>
Co-authored-by: opbld16 <opbld16@microsoft.com>
Co-authored-by: opbld17 <opbld17@microsoft.com>
Co-authored-by: atikmapari <31974726+atikmapari@users.noreply.github.com>
Co-authored-by: PRMerger19 <prmrgr19@microsoft.com>
Co-authored-by: Ming Ho <94572161+homing1@users.noreply.github.com>
Co-authored-by: PRMerger5 <prmergr5@microsoft.com>
Co-authored-by: Regan Downer <97987445+v-regandowner@users.noreply.github.com>
Co-authored-by: Jonathan Emmett <joemmett@microsoft.com>
Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com>
Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com>
Co-authored-by: PRMerger17 <prmrgr17@microsoft.com>
Co-authored-by: Paula Miller <v-paulmi@microsoft.com>
Co-authored-by: Martin Storsjö <martin@martin.st>
Co-authored-by: Sunny Chatterjee <sunnych@microsoft.com>
Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com>
Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com>
Co-authored-by: krispy <monstertyo@gmail.com>
Co-authored-by: PRMerger8 <prmrgr8@microsoft.com>
Co-authored-by: PRMerger10 <prmrgr10@microsoft.com>
Co-authored-by: Tech Stuff <103606018+teknixstuff@users.noreply.github.com>
Co-authored-by: Dennis Rea <v-denrea@microsoft.com>
Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/build/creating-and-managing-visual-cpp-projects.md
+20-8Lines changed: 20 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,37 @@
1
1
---
2
2
description: "Learn more about: creating and configuring Visual Studio C++ projects"
3
3
title: "Visual Studio Projects - C++"
4
-
ms.date: 04/19/2022
4
+
ms.date: 04/20/2022
5
5
helpviewer_keywords: ["Visual Studio C++ projects, creating", "projects [C++], creating", "Visual Studio C++ projects"]
6
6
---
7
7
# Visual Studio projects - C++
8
8
9
9
A *Visual Studio project* is a collection of code files and assets such as icons, images, and so on, that are built together using the MSBuild build system. MSBuild is the native build system for Visual Studio and is generally the best build system to use for Windows-specific programs. MSBuild is tightly integrated with Visual Studio, but you can also use it from the command line.
10
10
11
-
For cross-platform projects, or projects that use open-source libraries, we recommend using [CMake projects in Visual Studio](cmake-projects-in-visual-studio.md) in Visual Studio 2017 and later. For information about upgrading MSBuild projects from older versions of Visual Studio, see the [Microsoft C++ Porting and Upgrading Guide](../porting/visual-cpp-porting-and-upgrading-guide.md).
11
+
12
+
For information about upgrading MSBuild projects from older versions of Visual Studio, see the [Microsoft C++ Porting and Upgrading Guide](../porting/visual-cpp-porting-and-upgrading-guide.md).
13
+
14
+
For cross-platform projects, or projects that use open-source libraries, we recommend using [CMake projects in Visual Studio](cmake-projects-in-visual-studio.md) in Visual Studio 2017 and later.
15
+
12
16
13
17
## Create a Visual Studio C++ project
14
18
15
19
::: moniker range=">=msvc-160"
16
20
17
21
1. Create a C++ project by choosing **File** > **New** > **Project**.
18
-
1. Set the **Language** to C++.
19
-
1. In the results list, you'll see a list of project templates. Filter the templates them by setting the **Platform** or **Project Type** and then by typing keywords into the search box.
22
+
1. In the **Create a new project** dialog, set the **Language** dropdown to **C++**. This filters the list of project templates to C++ projects. You can filter the templates by setting the **Platform**, **Project Type**, or by entering keywords in the search box.
20
23
21
24

22
25
26
+
1. Select a project template, then choose **Next**.
27
+
1. On the **Configure your new project page**, enter project-specific settings such as the project name or location and then choose **Create** to create your project.
28
+
23
29
::: moniker-end
24
30
25
31
::: moniker range="msvc-150"
26
32
27
33
1. Create a C++ project by choosing **File** > **New** > **Project**.
28
-
1. Choose **Visual C++** in the left pane. In the center pane, a list of project templates will appear:
34
+
1. Choose **Visual C++** in the left pane. In the center pane, a list of project templates appears:
29
35
30
36

31
37
@@ -47,9 +53,13 @@ The solution file coordinates build dependencies when you have multiple related
47
53
48
54
Add source code files, icons, or any other items to your project by right-clicking on the project in **Solution Explorer** and choosing **Add > New** or **Add > Existing**.
49
55
50
-
## Add third party libraries to a project
51
56
52
-
To add third-party libraries, use the [vcpkg](https://vcpkg.io/) package manager. Run the Visual Studio integration step to set up the paths to that library when you reference it from any Visual Studio project.
57
+
## Add third-party libraries to a project
58
+
59
+
Over 900 C++ open source libraries are available via the [vcpkg](https://vcpkg.io/) package manager. Run the Visual Studio integration step to set up the paths to that library when you reference it from any Visual Studio project.
60
+
61
+
62
+
There are also commercial third-party libraries that you can install. Follow their installation instructions.
53
63
54
64
## Set compiler options and build properties
55
65
@@ -59,7 +69,9 @@ To configure build settings for a project, right-click on the project in **Solut
59
69
60
70
To compile and run the new project, press **F5** or click the *debug dropdown* with the green arrow on the main toolbar. The *configuration dropdown* is where you choose whether to perform a *Debug* or *Release* build (or some other custom configuration).
61
71
62
-
A new project compiles without errors. When adding your own code, you may occasionally introduce an error or trigger a warning. An error prevents the build from completing; a warning doesn't. All errors and warnings will appear both in the Output Window and in the Error List when you build the project.
72
+
73
+
A new project compiles without errors. When adding your own code, you may occasionally introduce an error or trigger a warning. An error prevents the build from completing; a warning doesn't. All errors and warnings appear both in the Output Window and in the Error List when you build the project.
74
+
63
75
64
76

Copy file name to clipboardExpand all lines: docs/overview/visual-cpp-in-visual-studio.md
+23-17Lines changed: 23 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "C and C++ in Visual Studio"
3
-
description: "Learn how to use the Microsoft C/C++ compiler, code editor, and related tools in Visual Studio to develop programs for Windows, Linux, Android and iOS."
4
-
ms.date: 09/20/2021
3
+
description: "Learn how to use the Microsoft C/C++ compilerand related tools to develop C++ and assembly programs for Windows, Linux, Android, and iOS."
4
+
ms.date: 04/20/2022
5
5
ms.technology: "cpp-ide"
6
6
helpviewer_keywords: ["Visual C++, home page"]
7
7
---
@@ -45,9 +45,9 @@ helpviewer_keywords: ["Visual C++, home page"]
45
45
46
46
Microsoft Visual C++ (MSVC) refers to the C++, C, and assembly language development tools and libraries available as part of Visual Studio on Windows. These tools and libraries let you create Universal Windows Platform (UWP) apps, native Windows desktop and server applications, cross-platform libraries and apps that run on Windows, Linux, Android, and iOS, as well as managed apps and libraries that use the .NET Framework. You can use MSVC to write anything from simple console apps to the most sophisticated and complex apps for Windows desktop, from device drivers and operating system components to cross-platform games for mobile devices, and from the smallest IoT devices to multi-server high performance computing in the Azure cloud.
47
47
48
-
Visual Studio 2015, 2017and 2019 can be installed side-by-side. You can use Visual Studio 2019 (compiler toolset v142) or Visual Studio 2017 (v141) to edit and build programs using the toolset from Visual Studio 2017 (v141) and Visual Studio 2015 (v140).
48
+
Visual Studio 2015, 2017, 2019, and 2022 can be installed side-by-side. You can use Visual Studio 2019 (compiler toolset v142) or Visual Studio 2017 (v141) to edit and build programs using the toolset from Visual Studio 2017 (v141) and Visual Studio 2015 (v140).
49
49
50
-
## What's New and Conformance History
50
+
## What's new for C++ in Visual Studio
51
51
52
52
[What's New for C++ in Visual Studio](what-s-new-for-visual-cpp-in-visual-studio.md)\
53
53
Find out what's new in Visual Studio.
@@ -64,7 +64,7 @@ Find feature-level language conformance status in the MSVC compiler by Visual St
64
64
[Microsoft C/C++ change history 2003 - 2015](../porting/visual-cpp-change-history-2003-2015.md)\
65
65
Learn about the breaking changes in previous versions.
66
66
67
-
## Install Visual Studio and upgrade from earlier versions
67
+
## Install Visual Studio C++ and upgrade from earlier versions
68
68
69
69
[Install C++ support in Visual Studio](../build/vscpp-step-0-installation.md)\
70
70
Download Visual Studio and install the Microsoft C/C++ toolset.
@@ -78,7 +78,7 @@ Find out about different Visual Studio editions.
Find out which platforms the Microsoft C/C++ compiler supports.
80
80
81
-
## Learn C++
81
+
## Learn C++ using Visual Studio
82
82
83
83
[Welcome back to C++](../cpp/welcome-back-to-cpp-modern-cpp.md)\
84
84
Learn more about modern C++ programming techniques based on C++11 and later that enable you to write fast, safe code and avoid many of the pitfalls of C-style programming.
@@ -92,7 +92,7 @@ Start learning how to write C++ in Visual Studio.
92
92
[Visual Studio C++ samples](visual-cpp-samples.md)\
93
93
Information about the C++ code samples provided by Microsoft.
94
94
95
-
## C++ development tools
95
+
## Visual Studio C/C++ development tools
96
96
97
97
[Overview of C++ development in Visual Studio](overview-of-cpp-development.md)\
98
98
How to use the Visual Studio IDE to create projects, edit code, link to libraries, compile, debug, create unit tests, do static analysis, deploy, and more.
@@ -112,17 +112,17 @@ Use SAL annotations or the C++ Core Guidelines checkers to perform static analys
112
112
[Write unit tests for C/C++ in Visual Studio](/visualstudio/test/writing-unit-tests-for-c-cpp)\
113
113
Create unit tests using the Microsoft Unit Testing Framework for C++, Google Test, Boost.Test, or CTest.
114
114
115
-
## Write applications in C++
116
-
117
-
[Universal Windows Apps (C++)](../cppcx/universal-windows-apps-cpp.md)\
118
-
Find guides and reference content on the Windows Developer Center. For information about developing UWP apps, see [Intro to the Universal Windows Platform](/windows/uwp/get-started/universal-application-platform-guide) and [Create your first UWP app using C++](/windows/uwp/get-started/create-a-basic-windows-10-app-in-cpp).
Learn how to create traditional native C++ desktop applications for Windows.
122
119
123
120
[.NET programming with C++/CLI](../dotnet/dotnet-programming-with-cpp-cli-visual-cpp.md)\
124
121
Learn how to create DLLs that enable interoperability between native C++ and .NET programs written in languages such as C# or Visual Basic.
125
122
123
+
[Universal Windows Apps (C++)](../cppcx/universal-windows-apps-cpp.md)\
124
+
Find guides and reference content on the Windows Developer Center. For information about developing UWP apps, see [Intro to the Universal Windows Platform](/windows/uwp/get-started/universal-application-platform-guide) and [Create your first UWP app using C++](/windows/uwp/get-started/create-a-basic-windows-10-app-in-cpp).
125
+
126
126
[Linux programming](../linux/index.yml)\
127
127
Use the Visual Studio IDE to code and deploy to a remote Linux machine for compilation with GCC.
128
128
@@ -144,21 +144,27 @@ Connect to databases using ODBC and OLE DB.
144
144
[Text and strings](../text/text-and-strings-in-visual-cpp.md)\
145
145
Learn about working with different text and string formats and encodings for local and international development.
146
146
147
-
## Languages reference
147
+
## C/C++ language reference
148
148
149
149
[C++ language reference](../cpp/cpp-language-reference.md)\
150
150
The reference guide to the Microsoft implementation of the C++ programming language.
151
151
152
+
[C language reference](../c-language/c-language-reference.md)\
153
+
The reference guide to the Microsoft implementation of the C programming language.
A common reference to the shared C and C++ language preprocessor.
154
157
155
-
[C language reference](../c-language/c-language-reference.md)\
156
-
The reference guide to the Microsoft implementation of the C programming language.
158
+
[C++/CX language reference](/cpp/cppcx/visual-c-language-reference-c-cx)\
159
+
The reference guide to the Microsoft extensions to the C++ language for creating C++ Universal Windows Platform apps, C++ Windows runtime components that can be consumed by JavaScript-based Windows apps, and Windows DirectX games and graphics-intensive apps.
160
+
161
+
[C++/CLI language reference](https://www.ecma-international.org/wp-content/uploads/ECMA-372_1st_edition_december_2005.pdf)\
162
+
The ECMA standard for the C++/CLI programming language.
157
163
158
164
[Compiler intrinsics and assembly language](../intrinsics/compiler-intrinsics-and-assembly-language.md)\
159
165
Guides to the compiler intrinsics supported or implemented by the Microsoft C/C++ compilers on each platform.
160
166
161
-
## C++ Libraries in Visual Studio
167
+
## C/C++ libraries available in Visual Studio
162
168
163
169
The following sections provide information about the different C and C++ libraries that are included in Visual Studio.
164
170
@@ -186,11 +192,11 @@ Universal Windows Platform (UWP) apps and components.
186
192
[.NET programming with C++/CLI](../dotnet/dotnet-programming-with-cpp-cli-visual-cpp.md)\
187
193
Programming for the common language runtime (CLR).
188
194
189
-
## Third-party open source C++ libraries
195
+
## Third-party open source C++ libraries in Visual Studio
190
196
191
197
The cross-platform **vcpkg** command-line tool greatly simplifies the discovery and installation of over 900 C++ open source libraries. For more information, see [vcpkg](https://vcpkg.io/).
0 commit comments