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
Copy file name to clipboardExpand all lines: docs/cppcx/wrl/walkthrough-creating-a-windows-store-app-using-wrl-and-media-foundation.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
1
---
2
2
title: "Walkthrough: Creating a UWP app using WRL and Media Foundation"
3
-
ms.date: "09/17/2018"
3
+
ms.date: "04/23/2019"
4
4
ms.topic: "reference"
5
5
ms.assetid: 0336c550-fbeb-4dc4-aa9b-660f9fc45382
6
6
---
7
7
# Walkthrough: Creating a UWP app using WRL and Media Foundation
8
8
9
-
Learn how to use the Windows Runtime C++ Template Library (WRL) to create a Universal Windows Platform (UWP) app that uses [Microsoft Media Foundation](/windows/desktop/medfound/microsoft-media-foundation-sdk).
9
+
> [!NOTE]
10
+
> For new UWP apps and components, we recommend that you use [C++/WinRT](/windows/uwp/cpp-and-winrt-apis/), a new standard C++17 language projection for Windows Runtime APIs. C++/WinRT is available in the Windows 10 SDK from version 1803 onward. C++/WinRT is implemented entirely in header files, and is designed to provide you with first-class access to the modern Windows API.
11
+
12
+
In this tutorial, you will learn how to use the Windows Runtime C++ Template Library (WRL) to create a Universal Windows Platform (UWP) app that uses [Microsoft Media Foundation](/windows/desktop/medfound/microsoft-media-foundation-sdk).
10
13
11
14
This example creates a custom Media Foundation transform that applies a grayscale effect to images that are captured from a webcam. The app uses C++ to define the custom transform and C# to use the component to transform the captured images.
12
15
@@ -20,6 +23,8 @@ In most cases, you can use C++/CX to create Windows Runtime. However, sometimes
20
23
21
24
## Prerequisites
22
25
26
+
- In Visual Studio 2017 and later, UWP support is an optional component. To install it, open the Visual Studio Installer from the Windows Start menu and find your version of Visual Studio. Choose **Modify** and then make sure the **Universal Windows Platform Development** tile is checked. Under **Optional Components** check **C++ Tools for UWP (v141)** for Visual Studio 2017, or **C++ Tools for UWP (v142)** for Visual Studio 2019. Then check the version of the Windows SDK that you want to use.
27
+
23
28
- Experience with the [Windows Runtime](https://msdn.microsoft.com/library/windows/apps/br211377.aspx).
# Walkthrough: Compile a C++/CLI Program that Targets the CLR in Visual Studio
8
8
9
-
By using C++/CLI language extensions you can create C++ programs that use .NET classes and compile them by using the Visual Studio Development Environment.
9
+
By using C++/CLI you can create C++ programs that use .NET classes as well as native C++ types. C++/CLI is intended for use in console applications and in DLLs that wrap native C++ code and make it accessible from .NET programs. To create a Windows user interface based on .NET, use C# or Visual Basic.
10
10
11
11
For this procedure, you can type your own C++ program or use one of the sample programs. The sample program that we use in this procedure creates a text file named textfile.txt, and saves it to the project directory.
12
12
13
13
## Prerequisites
14
14
15
-
These topics assume that you understand the fundamentals of the C++ language.
15
+
- An understanding of the fundamentals of the C++ language.
16
+
- In Visual Studio 2017 and later, C++/CLI support is an optional component. To install it, open the **Visual Studio Installer** from the Windows Start menu. Make sure that the **Desktop development with C++** tile is checked, and in the **Optional** components section, also check **C++/CLI Support**.
16
17
17
-
### To create a new project in Visual Studio and add a new source file
18
+
## Create a new project
19
+
20
+
The following steps vary depending on which version of Visual Studio you are using. Make sure the version selector in the upper left of this page is set correctly.
21
+
22
+
::: moniker range="vs-2019"
23
+
24
+
### To create a C++/CLI project in Visual Studio 2019
25
+
26
+
1. In **Solution Explorer**, right-click on the top to open the **Create a New Project** dialog box.
27
+
28
+
1. At the top of the dialog, type **CLR** in the search box and then choose **CLR Empty Project** from the results list.
29
+
30
+
1. Choose the **Create** button to create the project.
31
+
32
+
::: moniker-end
33
+
34
+
::: moniker range="vs-2017"
35
+
36
+
### To create a C++/CLI project in Visual Studio 2017
18
37
19
38
1. Create a new project. On the **File** menu, point to **New**, and then click **Project**.
20
39
21
40
1. From the Visual C++ project types, click **CLR**, and then click **CLR Empty Project**.
22
41
23
-
> [!NOTE]
24
-
> If the **CLR Empty Project** type is missing (Visual Studio 2017 only), select **Open Visual Studio Installer** in the left pane of the **New Project** dialog box. Install the option located under **Desktop development with C++** in the **Optional** components section, named **C++/CLI Support**.<br/>
42
+
1. Type a project name. By default, the solution that contains the project has the same name as the new project, but you can enter a different name. You can enter a different location for the project if you want.
43
+
44
+
1. Click **OK** to create the new project.
45
+
46
+
::: moniker-end
47
+
48
+
::: moniker range="vs-2015"
49
+
50
+
### To create a C++/CLI project in Visual Studio 2015
51
+
52
+
1. Create a new project. On the **File** menu, point to **New**, and then click **Project**.
53
+
54
+
1. From the Visual C++ project types, click **CLR**, and then click **CLR Empty Project**.
55
+
56
+
1. Type a project name. By default, the solution that contains the project has the same name as the new project, but you can enter a different name. You can enter a different location for the project if you want.
25
57
26
-
1.Type a project name.
58
+
1.Click **OK** to create the new project.
27
59
28
-
By default, the solution that contains the project has the same name as the new project, but you can enter a different name. You can enter a different location for the project if you want.
60
+
::: moniker-end
29
61
30
-
Click **OK** to create the new project.
62
+
## Add a source file
31
63
32
64
1. If **Solution Explorer** isn't visible, click **Solution Explorer** on the **View** menu.
33
65
@@ -47,7 +79,7 @@ These topics assume that you understand the fundamentals of the C++ language.
For more information on the new Visual C++ syntax, see [Component Extensions for Runtime Platforms](../extensions/component-extensions-for-runtime-platforms.md).
82
+
For more information on C++/CLI syntax, see [Component Extensions for Runtime Platforms](../extensions/component-extensions-for-runtime-platforms.md).
51
83
52
84
1. On the **Build** menu, click **Build Solution**.
@@ -29,7 +29,9 @@ The following procedure demonstrates the most basic use of the `CTaskDialog`, wh
29
29
30
30
### To Replace a Windows Message Box with a CTaskDialog
31
31
32
-
1. Create a new MFC Application project with the default settings. Call it *MyProject*.
32
+
1. Use the **MFC Application Wizard** to create an MFC application with all the default settings. See [Walkthrough: Using the New MFC Shell Controls](walkthrough-using-the-new-mfc-shell-controls.md) for instructions on how to open the wizard for your version of Visual Studio.
33
+
34
+
1. Call it *MyProject*.
33
35
34
36
1. Use the **Solution Explorer** to open the file MyProject.cpp.
Copy file name to clipboardExpand all lines: docs/mfc/walkthrough-adding-a-d2d-object-to-an-mfc-project.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Walkthrough: Adding a D2D Object to an MFC Project"
3
-
ms.date: "09/20/2018"
3
+
ms.date: "04/25/2019"
4
4
helpviewer_keywords: ["MFC, D2D", "D2D [MFC]"]
5
5
ms.assetid: dda36c33-c231-4da6-a62f-72d69a12b6dd
6
6
---
@@ -28,9 +28,9 @@ To complete this walkthrough, you must have Visual Studio installed with the **D
28
28
29
29
## To create an MFC application
30
30
31
-
1.On the **File**menu, point to **New** and then choose **Project**.
31
+
1.Use the **MFC Application Wizard**to create an MFC application. See [Walkthrough: Using the New MFC Shell Controls](walkthrough-using-the-new-mfc-shell-controls.md) for instructions on how to open the wizard for your version of Visual Studio.
32
32
33
-
1. In the **New Project** dialog box, in the left pane under **Installed Templates**, expand **Visual C++** and then select **MFC**. In the middle pane, select **MFC Application**. In the **Name** box, type *MFCD2DWalkthrough*. Choose **OK**.
33
+
1. In the **Name** box, type *MFCD2DWalkthrough*. Choose **OK**.
34
34
35
35
1. In the **MFC Application Wizard**, choose **Finish** without changing any settings.
@@ -30,9 +30,9 @@ To complete this walkthrough, you must have Visual Studio.
30
30
31
31
### To create an MFC application
32
32
33
-
1.On the **File**menu, point to **New** and then click **Project**.
33
+
1.Use the **MFC Application Wizard**to create an MFC application. See [Walkthrough: Using the New MFC Shell Controls](walkthrough-using-the-new-mfc-shell-controls.md) for instructions on how to open the wizard for your version of Visual Studio.
34
34
35
-
1. In the **New Project** dialog box, in the left pane under **Installed Templates**, expand **Visual C++** and then select **MFC**. In the middle pane, select **MFC Application**. In the **Name** box, type *MFCAnimationWalkthrough*. Click **OK**.
35
+
1. In the **Name** box, type *MFCAnimationWalkthrough*. Click **OK**.
36
36
37
37
1. In the **MFC Application Wizard** dialog box, verify that **Application Type** is **Multiple Documents**, **Project Style** is **Visual Studio**, and the **Document/View architecture support** option is selected. Click **Finish**.
Copy file name to clipboardExpand all lines: docs/mfc/walkthrough-creating-a-ribbon-application-by-using-mfc.md
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Walkthrough: Creating a Ribbon Application By Using MFC"
3
-
ms.date: "11/04/2016"
3
+
ms.date: "04/25/2019"
4
4
helpviewer_keywords: ["ribbon application, creating (MFC)", "creating a ribbon aplication (MFC)"]
5
5
ms.assetid: e61393e2-1d6b-4594-a7ce-157d3d1b0d9f
6
6
---
@@ -14,9 +14,7 @@ This walkthrough assumes that you have set Visual Studio to use **General Develo
14
14
15
15
### To create an MFC application that has a ribbon
16
16
17
-
1. Use the **MFC Application Wizard** to create an MFC application that has a ribbon. To run the wizard, on the **File** menu, point to **New**, and then click **Project**.
18
-
19
-
1. In the **New Project** dialog box, expand the **Visual C++** node under **Installed Templates**, select **MFC**, and then select **MFC Application**. Type a name for the project, for example, *MFCRibbonApp*, and then click **OK**.
17
+
1. Use the **MFC Application Wizard** to create an MFC application that has a ribbon. See [Walkthrough: Using the New MFC Shell Controls](walkthrough-using-the-new-mfc-shell-controls.md) for instructions on how to open the wizard for your version of Visual Studio.
20
18
21
19
1. Set the following options in the **MFC Application Wizard**:
22
20
@@ -26,7 +24,7 @@ This walkthrough assumes that you have set Visual Studio to use **General Develo
26
24
27
25
1. In the **Document Template Properties** section, in the **File extension** box, type a file name extension for documents that this application creates, for example, *mfcrbnapp*.
28
26
29
-
1. In the **Database Support** section, make sure that **None** is selected.
27
+
1. In the **Database Support** section (Visual Studio 2015 only), make sure that **None** is selected.
30
28
31
29
1. In the **User Interface Features** section, make sure that **Use a ribbon** is selected.
@@ -12,7 +12,7 @@ This walkthrough modifies the classic Scribble 1.0 MFC sample that lets you use
12
12
13
13
## Prerequisites
14
14
15
-
The [Scribble 1.0 MFC sample](http://download.microsoft.com/download/4/0/9/40946FEC-EE5C-48C2-8750-B0F8DA1C99A8/MFC/general/Scribble.zip.exe). For help on converting to Visual Studio 2017, see [Porting Guide: MFC Scribble](../porting/porting-guide-mfc-scribble.md).
15
+
The [Scribble 1.0 MFC sample](http://download.microsoft.com/download/4/0/9/40946FEC-EE5C-48C2-8750-B0F8DA1C99A8/MFC/general/Scribble.zip.exe). For help on converting to Visual Studio 2017 or later, see [Porting Guide: MFC Scribble](../porting/porting-guide-mfc-scribble.md).
0 commit comments