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/mfc/reference/creating-an-mfc-application.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ For more information, see [Creating a forms-based MFC application](creating-a-fo
35
35
36
36
:::image type="complex" source="media/mfc-app-wizard.png" alt-text="Screenshot of the MFC Application wizard in Visual Studios 2022.":::
37
37
The dialog shows options for the application type which is set to single document. Application type options include tabbed documents, which is checked, and document/view architecture support, which is checked. There are other options for project style, resource language, and so on that are set to their default values.
38
-
:::image-end
38
+
:::image-end:::
39
39
40
40
## To create an MFC console application
41
41
@@ -48,37 +48,37 @@ An MFC console application is a command-line program that uses MFC libraries but
48
48
49
49
:::image type="complex" source="media/windows-desktop-wizard.png" alt-text="Screenshot of the Windows Desktop Project wizard in Visual Studios 2022.":::
50
50
The dialog shows the application type, set to Console Application (.exe). Under Additional Options, Precompiled header is checked as is MFC headers. Precompiled header is checked automatically when MFC headers is checked.
51
-
:::image-end
51
+
:::image-end:::
52
52
::: moniker-end
53
53
54
54
::: moniker range="=msvc-150"
55
55
56
56
## To create an MFC forms or dialog-based application
57
57
58
-
1. From the main menu, choose **File** > **New** > **Project**.
59
-
1. Under the **Installed** templates, choose **Visual C++** > **MFC/ATL**. If you don't see these, use the Visual Studio Installer to add them.
60
-
1. Choose **MFC Application** from the center pane.
61
-
1. Modify the configuration values as needed, then press **Finish**.
58
+
1. From the Visual Studio main menu, choose **File** > **New** > **Project**.
59
+
1. Under the **Installed** templates, choose **Visual C++** > **MFC/ATL**. If you don't see these, use the Visual Studio Installer to add MFC/ATL functionality. You can access the installer from the Visual Studio menu via **Tools** > **Get Tools and Features...** In the installer, select **Individual components** and search for **mfc** and then select the appropriate library for your machine such as **Visual C++ MFC for x86 and x64 with Spectre Mitigations**.
60
+
1. Choose **MFC App** from the center pane.
61
+
1. Modify the configuration values as needed, then press **OK**.
62
62
63
63
For more information, see [Creating a Forms-Based MFC Application](creating-a-forms-based-mfc-application.md).
64
64
65
65
:::image type="complex" source="media/mfc-app-wizard.png" alt-text="Screenshot of the MFC Application wizard in Visual Studios 2017.":::
66
66
The dialog shows the various settings set to their default, such as the application type set to console application.exe; precompiled header is checked and security development lifecycle (SDL) is checked. Add common headers for: MFC is not checked, but you will select it.
67
-
:::image-end
67
+
:::image-end:::
68
68
69
69
## To create an MFC console application
70
70
71
71
An MFC console application is a command-line program that uses MFC libraries but runs in the console window.
72
72
73
73
1. From the main menu, choose **File** > **New** > **Project**.
74
74
1. Under the **Installed** templates, choose **Visual C++** > **Windows Desktop**.
75
-
1.Choose **Windows Desktop Wizard** from the center pane.
75
+
1.From the center pane, choose **Windows Desktop Wizard**.
76
76
1. Modify the project name as needed, then press **OK** to open the **Windows Desktop Wizard**.
77
77
1. Check the **MFC Headers** box and set other values as needed, then press **OK**.
78
78
79
79
:::image type="complex" source="media/windows-desktop-wizard.png" alt-text="Screenshot of the Windows Desktop Project wizard in Visual Studios 2017.":::
80
80
The dialog shows the application type set to Console Application (.exe). Under additional options, Precompiled header is checked and MFC headers is checked.
81
-
:::image-end
81
+
:::image-end:::
82
82
83
83
::: moniker-end
84
84
@@ -95,7 +95,7 @@ For more information, see [Creating a Forms-Based MFC Application](creating-a-fo
95
95
96
96
:::image type="complex" source="media/mfc-app-wizard-2015.png" alt-text="Screenshot of the MFC Application wizard in Visual Studios 2015.":::
97
97
The dialog lists the current project settings such as: tabbed multiple document interface, no database support, no compound document support, customizable menu bar and toolbar interface, Visual Studio 2008 application appearance, Visual Studio project style, and restart manager support.
0 commit comments