Skip to content

Commit 16cbd1a

Browse files
TylerMSFTTylerMSFT
authored andcommitted
Fix github issues
1 parent 47979de commit 16cbd1a

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

docs/cpp/examples-of-lambda-expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Although lambda expressions are most often declared in the body of a function, y
5151

5252
### Example 2
5353

54-
The Microsoft C++ compiler binds a lambda expression to its captured variables when the expression is declared instead of when the expression is called. The following example shows a lambda expression that captures the local variable `i` by value and the local variable `j` by reference. Because the lambda expression captures `i` by value, the reassignment of `i` later in the program does not affect the result of the expression. However, because the lambda expression captures `j` by reference, the reassignment of `j` does affect the result of the expression.
54+
The Microsoft C++ compiler binds a lambda expression to its captured variables when the expression is declared instead of when the expression is called. The following example shows a lambda expression that captures the local variable `i` by value and the local variable `j` by reference. Because the lambda expression captures `i` by value, the reassignment of `i` later in the program doesn't affect the result of the expression. However, because the lambda expression captures `j` by reference, the reassignment of `j` does affect the result of the expression.
5555

5656
```cpp
5757
// declaring_lambda_expressions2.cpp
@@ -318,7 +318,7 @@ int main()
318318
values.push_back(4);
319319

320320
// Create a Scale object that scales elements by 3 and apply
321-
// it to the vector object. Does not modify the vector.
321+
// it to the vector object. doesn't modify the vector.
322322
Scale s(3);
323323
s.ApplyScale(values);
324324
}
@@ -459,7 +459,7 @@ For more information about exception handling, see [Exception Handling](../cpp/e
459459

460460
### Example
461461

462-
The capture clause of a lambda expression cannot contain a variable that has a managed type. However, you can pass an argument that has a managed type to the parameter list of a lambda expression. The following example contains a lambda expression that captures the local unmanaged variable `ch` by value and takes a <xref:System.String?displayProperty=fullName> object as its parameter.
462+
The capture clause of a lambda expression can't contain a variable that has a managed type. However, you can pass an argument that has a managed type to the parameter list of a lambda expression. The following example contains a lambda expression that captures the local unmanaged variable `ch` by value and takes a <xref:System.String?displayProperty=fullName> object as its parameter.
463463

464464
```cpp
465465
// managed_lambda_expression.cpp

docs/windows/clickonce-deployment-for-visual-cpp-applications.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@ description: "Learn more about: ClickOnce Deployment for Visual C++ Applications
33
title: "ClickOnce Deployment for Visual C++ Applications"
44
ms.date: "11/04/2016"
55
helpviewer_keywords: ["deploying applications [C++], ClickOnce", "application deployment [C++], ClickOnce", "ClickOnce deployment [C++], C++ applications"]
6-
ms.assetid: 9988c546-0936-452c-932f-9c76daa42157
76
---
87
# ClickOnce Deployment for Visual C++ Applications
98

109
Visual Studio provides two different technologies for deploying Windows applications: ClickOnce deployment or [Windows Installer](/windows/win32/Msi/windows-installer-portal) deployment.
1110

1211
## ClickOnce Deployment in C++
1312

14-
The Visual C++ development environment does not directly support deployment of Visual Studio C++ projects with ClickOnce, but tools are available to use it.
15-
1613
> [!NOTE]
17-
> Visual Studio does support ClickOnce in the Visual C# and Visual Basic development environments. If your Visual Studio C++ project is a dependency of a Visual C# project, you can publish the application (including its dependencies) using ClickOnce deployment from the Visual C# development environment.
14+
> ClickOnce does not support deployment of native C++ applications. However, you can use ClickOnce to deploy a Visual C++ application if it is a dependency of a Visual C# or VB.NET project. For example, if you have a Visual C# project that depends on a Visual C++ project, you can publish the application (including its dependencies) using ClickOnce deployment from the Visual C# development environment. If you have a Visual Basic .NET project that depends on a Visual C++ project, you can publish the application (including its dependencies) using ClickOnce deployment from the Visual Basic .NET development environment.
1815
1916
To deploy a Visual C++ application using ClickOnce, you first have to build a [ClickOnce Application Manifest](/visualstudio/deployment/clickonce-application-manifest) and a [ClickOnce Deployment Manifest](/visualstudio/deployment/clickonce-deployment-manifest) using the [Mage.exe (Manifest Generation and Editing Tool)](/dotnet/framework/tools/mage-exe-manifest-generation-and-editing-tool) or its graphical user interface version (for information, see [MageUI.exe (Manifest Generation and Editing Tool, Graphical Client)](/dotnet/framework/tools/mageui-exe-manifest-generation-and-editing-tool-graphical-client)).
2017

0 commit comments

Comments
 (0)