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/build/walkthrough-compile-a-c-program-on-the-command-line.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: "Compile a C program on the command line"
3
-
description: "Learn How to Create a Basic, C Program by Using a Text Editor, and Then Compile it by Using the Command Line."
2
+
title: "Compile a C Program on the Command Line"
3
+
description: "Learn how to create a Hello World C program by using a text editor, and then compile it by using the command line."
4
4
ms.custom: tutorial
5
5
ms.date: 03/17/2025
6
6
helpviewer_keywords: ["command-line applications [C++], C programs", "Visual C, compiling", "compiling programs [C++]", "C program compiling [C++]"]
@@ -14,7 +14,7 @@ This guide explains how to create a basic *Hello, World*-style C program by usin
14
14
15
15
## Prerequisites
16
16
17
-
- Either **Visual Studio** or the **build tools for Visual Studio**, and the optional **Desktop development with C++** workload
17
+
- Either **Visual Studio** or the **build tools for Visual Studio**, and the **Desktop development with C++** workload
18
18
- Visual Studio is a powerful integrated development environment that supports a full-featured editor, resource managers, debuggers, and compilers for many languages and platforms. For information on these features and how to download and install Visual Studio, including the free Visual Studio Community edition, see [Install Visual Studio](/visualstudio/install/install-visual-studio).
19
19
- The build tools for Visual Studio install only the command-line toolset, the compilers, tools, and libraries you need to build C and C++ programs. It's perfect for build labs or classroom exercises and installs relatively quickly. To install only the command-line toolset, download build tools for Visual Studio from the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022) page and run the installer. In the Visual Studio installer, select the **Desktop development with C++** workload (in older versions of Visual Studio, select the **C++ build tools** workload), and choose **Install**.
20
20
@@ -141,7 +141,7 @@ If you can't find the developer command prompt shortcut, or if you get an error
141
141
>
142
142
> If you get a different compiler or linker error or warning, review your source code to correct any errors, then save it and run the compiler again. For information about specific errors, use the search box at the top of this page to look for the error number.
143
143
144
-
1. To run your program, enter *hello* at the command prompt.
144
+
1. To run your program, enter `hello` at the command prompt.
@@ -11,7 +11,7 @@ This step-by-step walkthrough explains how to use the Visual Studio IDE to creat
11
11
12
12
In this walkthrough, you create a DLL that implements some math functions. Then you create a console app that uses the functions from the DLL. You also get an introduction to some of the programming techniques and conventions used in Windows DLLs.
13
13
14
-
This guide covers the following steps:
14
+
This walkthrough covers the following steps:
15
15
16
16
- Create a DLL project in Visual Studio.
17
17
- Add exported functions and variables to the DLL.
Copy file name to clipboardExpand all lines: docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: "Create a traditional Windows desktop application (C++)"
3
-
description: "Learn How to Create a Minimal, Traditional Windows Desktop Application using Visual Studio, C++, and the Win32 API."
2
+
title: "Create a Traditional Windows Desktop Application (C++)"
3
+
description: "Learn how to create a minimal, traditional Windows desktop application using Visual Studio, C++, and the Win32 API."
4
4
ms.custom: "get-started-article"
5
5
ms.topic: tutorial
6
6
ms.date: 03/17/2025
@@ -103,7 +103,7 @@ Your project is now created and your source file is opened in the editor.
103
103
104
104
1. On the **Overview** page of the **Win32 Application Wizard**, choose **Next**.
105
105
106
-
:::image type="content" source="../build/media/desktop-app-win32-wizard-overview-150.png" alt-text="Screenshot of the dialog box in Visual Studio 2015 that shows Win32 Application Wizard Overview page.":::
106
+
:::image type="content" source="../build/media/desktop-app-win32-wizard-overview-150.png" alt-text="Screenshot of the dialog box in Visual Studio 2015 that shows the Win32 Application Wizard Overview page.":::
107
107
108
108
1. On the **Application Settings** page, under **Application type**, select **Windows application**. Under **Additional options**, uncheck **Precompiled header**, then select **Empty project**. Choose **Finish** to create the project.
109
109
@@ -592,7 +592,7 @@ As promised, the complete code for the working application follows.
592
592
The animation shows clicking the save all button, then choosing Build > Build Solution from the main menu.
593
593
:::image-end:::
594
594
595
-
1. To run the application, press **F5**. A window with the text *Hello, Windows desktop!* should appear.
595
+
1. To run the application, press **F5**. A window with the text `Hello, Windows desktop!` should appear.
596
596
597
597
:::image type="content" source="../build/media/desktop-app-project-run-157.png" alt-text="Screenshot of a window with the title Windows Desktop Guided Tour Application. The contents of the window are Hello, Windows desktop!.":::
0 commit comments