Skip to content

Commit dd05ab1

Browse files
author
Matthew Sebolt (Aquent LLC)
committed
Acrolinx edits
1 parent 05a385c commit dd05ab1

24 files changed

Lines changed: 151 additions & 151 deletions

docs/atl/implementing-a-dialog-box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ There are two ways to add a dialog box to your ATL project: use the ATL Dialog W
1717

1818
## Adding a Dialog Box with the ATL Dialog Wizard
1919

20-
In the [Add Class dialog box](../ide/add-class-dialog-box.md), select the ATL Dialog object to add a dialog box to your ATL project. Fill in the ATL Dialog Wizard as appropriate and click **Finish**. The wizard adds a class derived from [CAxDialogImpl](../atl/reference/caxdialogimpl-class.md) to your project. Open the Resource View from the **View** menu, locate your dialog, and double-click it to open it in the resource editor.
20+
In the [Add Class dialog box](../ide/add-class-dialog-box.md), select the ATL Dialog object to add a dialog box to your ATL project. Fill in the ATL Dialog Wizard as appropriate and click **Finish**. The wizard adds a class derived from [CAxDialogImpl](../atl/reference/caxdialogimpl-class.md) to your project. Open Resource View from the **View** menu, locate your dialog, and double-click it to open it in the resource editor.
2121

2222
> [!NOTE]
2323
> If your dialog box is derived from `CAxDialogImpl`, it can host both ActiveX and Windows controls. If you don't want the overhead of ActiveX control support in your dialog box class, use [CSimpleDialog](../atl/reference/csimpledialog-class.md) or [CDialogImpl](../atl/reference/cdialogimpl-class.md) instead.

docs/dotnet/hosting-a-windows-form-user-control-as-an-mfc-dialog-box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For a sample application that shows Windows Forms used with MFC, see [MFC and Wi
4343

4444
1. Add a new class that subclasses `CDialog`.
4545

46-
Right click on project name and add an MFC class (called CHostForWinForm) that subclasses `CDialog`. Since you do not need the dialog box resource, you can delete the resource ID (select the Resource View, expand the Dialog folder and delete IDD_HOSTFORWINFORM resource. Then, remove any references to the ID in code.).
46+
Right click on project name and add an MFC class (called CHostForWinForm) that subclasses `CDialog`. Since you do not need the dialog box resource, you can delete the resource ID (select Resource View, expand the Dialog folder and delete IDD_HOSTFORWINFORM resource. Then, remove any references to the ID in code.).
4747

4848
1. Replace `CDialog` in CHostForWinForm.h and CHostForWinForm.cpp files with `CWinFormsDialog<WindowsControlLibrary1::UserControl1>`.
4949

docs/dotnet/how-to-migrate-to-clr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Precompiled headers are supported under **/clr**. However, if you only compile s
102102
103103
The easiest way to compile a project where some modules are compiled **/clr** is to disable precompiled headers entirely. (In the project Property Pages dialog, open the C/C++ node, and select Precompiled Headers. Then change the Create/Use Precompiled Headers property to "Not Using Precompiled Headers".)
104104
105-
However, particularly for large projects, precompiled headers provide much better compilation speed, so disabling this feature is not desirable. In this case it's best to configure the **/clr** and non **/clr** files to use separate precompiled headers. This can be done in one step by multi-selecting the modules to be compiled **/clr** using the Solution Explorer, right-clicking on the group, and selecting Properties. Then change both the Create/Use PCH Through File and Precompiled Header File properties to use a different header file name and PCH file respectively.
105+
However, particularly for large projects, precompiled headers provide much better compilation speed, so disabling this feature is not desirable. In this case it's best to configure the **/clr** and non **/clr** files to use separate precompiled headers. This can be done in one step by multi-selecting the modules to be compiled **/clr** using Solution Explorer, right-clicking on the group, and selecting Properties. Then change both the Create/Use PCH Through File and Precompiled Header File properties to use a different header file name and PCH file respectively.
106106
107107
## Fixing Errors
108108

docs/ide/walkthrough-building-a-project-cpp.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@ In this walkthrough, you deliberately introduce a Visual C++ syntax error in you
1919

2020
- This walkthrough assumes that you understand the fundamentals of the C++ language.
2121

22-
- It also assumes that you have completed the earlier related walkthroughs that are listed in [Using the Visual Studio IDE for C++ Desktop Development](../ide/using-the-visual-studio-ide-for-cpp-desktop-development.md).
22+
- It also assumes that you've completed the earlier related walkthroughs that are listed in [Using the Visual Studio IDE for C++ Desktop Development](../ide/using-the-visual-studio-ide-for-cpp-desktop-development.md).
2323

2424
### To fix compilation errors
2525

26-
1. In Game.cpp, delete the semicolon in the last line so that it resembles this:
26+
1. In Game.cpp, delete the semicolon in the last line so that it resembles the statement:
2727

28-
`return 0`
28+
`return 0`
2929

3030
1. On the menu bar, choose **Build** > **Build Solution**.
3131

32-
1. A message in the **Error List** window indicates that there was an error in the building of the project. The description looks something like this:
32+
1. A message in the **Error List** window indicates that there was an error in the building of the project. The description looks something like the error message:
3333

34-
`error C2143: syntax error: missing ';' before '}'`
34+
`error C2143: syntax error: missing ';' before '}'`
3535

36-
To view help information about this error, highlight it in the **Error List** window and then choose the **F1** key.
36+
To view help information about this error, highlight it in the **Error List** window and then choose the **F1** key.
3737

3838
1. Add the semicolon back to the end of the line that has the syntax error:
3939

4040
`return 0;`
4141

4242
1. On the menu bar, choose **Build** > **Build Solution**.
4343

44-
A message in the **Output** window indicates that the project compiled successfully.
44+
A message in the **Output** window indicates that the project compiled successfully.
4545

4646
```Output
4747
1>------ Build started: Project: Game, Configuration: Debug Win32 ------

docs/ide/walkthrough-compiling-a-cpp-program-that-targets-the-clr-in-visual-studio.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.workload: ["cplusplus"]
1515

1616
You can create Visual C++ programs that use .NET classes and compile them by using the Visual Studio Development Environment.
1717

18-
For this procedure you can type your own Visual 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.
18+
For this procedure, you can type your own Visual 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.
1919

2020
## Prerequisites
2121

@@ -32,41 +32,41 @@ These topics assume that you understand the fundamentals of the C++ language.
3232
3333
1. Type a project name.
3434

35-
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.
35+
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.
3636

37-
Click **OK** to create the new project.
37+
Click **OK** to create the new project.
3838

39-
1. If **Solution Explorer** is not visible, click **Solution Explorer** on the **View** menu.
39+
1. If **Solution Explorer** isn't visible, click **Solution Explorer** on the **View** menu.
4040

4141
1. Add a new source file to the project:
4242

43-
- Right-click the **Source Files** folder in **Solution Explorer**, point to **Add** and click **New Item**.
43+
- Right-click the **Source Files** folder in **Solution Explorer**, point to **Add**, and click **New Item**.
4444

4545
- Click **C++ File (.cpp)** and type a file name and then click **Add**.
4646

47-
The **.cpp** file appears in the **Source Files** folder in **Solution Explorer** and a tabbed window appears where you type the code you want in that file.
47+
The **.cpp** file appears in the **Source Files** folder in **Solution Explorer** and a tabbed window appears where you type the code you want in that file.
4848

4949
1. Click in the newly created tab in Visual Studio and type a valid Visual C++ program, or copy and paste one of the sample programs.
5050

51-
For example, you can use the [How to: Write a Text File (C++/CLI)](../dotnet/how-to-write-a-text-file-cpp-cli.md) sample program (in the **File Handling and I/O** node of the Programming Guide).
51+
For example, you can use the [How to: Write a Text File (C++/CLI)](../dotnet/how-to-write-a-text-file-cpp-cli.md) sample program (in the **File Handling and I/O** node of the Programming Guide).
5252

53-
If you use the sample program, notice that you use the `gcnew` keyword instead of `new` when creating a .NET object, and that `gcnew` returns a handle (`^`) rather than a pointer (`*`):
53+
If you use the sample program, notice that you use the `gcnew` keyword instead of `new` when creating a .NET object, and that `gcnew` returns a handle (`^`) rather than a pointer (`*`):
5454

55-
`StreamWriter^ sw = gcnew StreamWriter(fileName);`
55+
`StreamWriter^ sw = gcnew StreamWriter(fileName);`
5656

57-
For more information on the new Visual C++ syntax, see [Component Extensions for Runtime Platforms](../windows/component-extensions-for-runtime-platforms.md).
57+
For more information on the new Visual C++ syntax, see [Component Extensions for Runtime Platforms](../windows/component-extensions-for-runtime-platforms.md).
5858

5959
1. On the **Build** menu, click **Build Solution**.
6060

61-
The **Output** window displays information about the compilation progress, such as the location of the build log and a message that indicates the build status.
61+
The **Output** window displays information about the compilation progress, such as the location of the build log and a message that indicates the build status.
6262

63-
If you make changes and run the program without doing a build, a dialog box might indicate that the project is out of date. Select the checkbox on this dialog before you click **OK** if you want Visual Studio to always use the current versions of files instead of prompting you each time it builds the application.
63+
If you make changes and run the program without doing a build, a dialog box might indicate that the project is out of date. Select the checkbox on this dialog before you click **OK** if you want Visual Studio to always use the current versions of files instead of prompting you each time it builds the application.
6464

6565
1. On the **Debug** menu, click **Start without Debugging**.
6666

6767
1. If you used the sample program, when you run the program a command window is displayed that indicates the text file has been created.
6868

69-
The **textfile.txt** text file is now located in your project directory. You can open this file by using Notepad.
69+
The **textfile.txt** text file is now located in your project directory. You can open this file by using Notepad.
7070

7171
> [!NOTE]
7272
> Choosing the empty CLR project template automatically set the `/clr` compiler option. To verify this, right-click the project in **Solution Explorer** and clicking **Properties**, and then check the **Common Language Runtime support** option in the **General** node of **Configuration Properties**.

docs/ide/walkthrough-debugging-a-project-cpp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ ms.workload: ["cplusplus"]
1313
---
1414
# Walkthrough: Debugging a Project (C++)
1515

16-
In this walkthrough, you modify the program to fix the problem that you discovered when you tested the project.
16+
In this walkthrough, you modify the program to fix the problem that you found when you tested the project.
1717

1818
## Prerequisites
1919

2020
- This walkthrough assumes that you understand the fundamentals of the C++ language.
2121

22-
- It also assumes that you have completed the earlier related walkthroughs that are listed in [Using the Visual Studio IDE for C++ Desktop Development](../ide/using-the-visual-studio-ide-for-cpp-desktop-development.md).
22+
- It also assumes that you've completed the earlier related walkthroughs that are listed in [Using the Visual Studio IDE for C++ Desktop Development](../ide/using-the-visual-studio-ide-for-cpp-desktop-development.md).
2323

2424
### To fix a program that has a bug
2525

@@ -31,11 +31,11 @@ In this walkthrough, you modify the program to fix the problem that you discover
3131

3232
Open the shortcut menu for the **~Cardgame(void)** destructor and then choose **Go To Definition**.
3333

34-
1. To decrease the `totalParticipants` when a Cardgame terminates, add the following code between the opening and closing braces of the `Cardgame::~Cardgame` destructor.
34+
1. To decrease the `totalParticipants` when a Cardgame ends, add the following code between the opening and closing braces of the `Cardgame::~Cardgame` destructor.
3535

3636
[!code-cpp[NVC_Walkthrough_Debugging_A_Project#110](../ide/codesnippet/CPP/walkthrough-debugging-a-project-cpp_1.cpp)]
3737

38-
1. The Cardgame.cpp file should resemble this after you change it:
38+
1. The Cardgame.cpp file should resemble the code below after you change it:
3939

4040
[!code-cpp[NVC_Walkthrough_Debugging_A_Project#111](../ide/codesnippet/CPP/walkthrough-debugging-a-project-cpp_2.cpp)]
4141

docs/ide/walkthrough-deploying-a-visual-cpp-application-by-using-a-setup-project.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You need the following components to complete this walkthrough:
2121

2222
- A computer with Visual Studio installed.
2323

24-
- An additional computer that does not have the Visual C++ libraries.
24+
- An additional computer that doesn't have the Visual C++ libraries.
2525

2626
### To deploy an application by using a setup project
2727

@@ -36,9 +36,9 @@ You need the following components to complete this walkthrough:
3636
3737
1. Change the active solution configuration to **Release**. From the **Build** menu, select **Configuration Manger**. From the **Configuration Manager** dialog box, select **Release** from the **Active solution configuration** drop-down box. Click **Close**.
3838

39-
1. Press **Ctrl**+**Shift**+**B** to build the application. Or, on the **Build** menu, click **Build Solution**. This enables the setup project to use the output of this MFC application project.
39+
1. Press **Ctrl**+**Shift**+**B** to build the application. Or, on the **Build** menu, click **Build Solution**. Building the application enables the setup project to use the output of this MFC application project.
4040

41-
1. If you haven’t already done so, download the Microsoft Visual Studio Installer Projects extension. The extension is free for Visual Studio developers and adds the functionality of the setup and deployment project templates to Visual Studio. When you are connected to the Internet, in Visual Studio, choose **Tools** > **Extensions and Updates**. Under the **Extensions and Updates** dialog, select the **Online** tab and type *Microsoft Visual Studio Installer Projects* in the search box. Hit **Enter**, select **Microsoft Visual Studio \<version> Installer Projects**, and click **Download**. Choose to run and install the extension, then restart Visual Studio.
41+
1. If you haven’t already done so, download the Microsoft Visual Studio Installer Projects extension. The extension is free for Visual Studio developers and adds the functionality of the setup and deployment project templates to Visual Studio. When you're connected to the Internet, in Visual Studio, choose **Tools** > **Extensions and Updates**. Under the **Extensions and Updates** dialog, select the **Online** tab and type *Microsoft Visual Studio Installer Projects* in the search box. Hit **Enter**, select **Microsoft Visual Studio \<version> Installer Projects**, and click **Download**. Choose to run and install the extension, then restart Visual Studio.
4242

4343
1. On the menu bar, choose **File** > **Recent Projects and Solutions**, and then choose to reopen your project.
4444

@@ -48,15 +48,15 @@ You need the following components to complete this walkthrough:
4848

4949
1. Right-click the **Application Folder** node and select **Add** > **Project Output** to open the **Add Project Output Group** dialog box. In the dialog box, select **Primary Output** and click **OK**. A new item named **Primary Output from ProjectName (Active)** appears.
5050

51-
1. Right-click the **Application Folder** node and select **Add** > **Assembly** to open the **Select Component** dialog box. Select and add any required DLLs needed by the program, as described by the topic [Determining Which DLLs to Redistribute](determining-which-dlls-to-redistribute.md).
51+
1. Right-click the **Application Folder** node and select **Add** > **Assembly** to open the **Select Component** dialog box. Select and add any required DLLs needed by the program, as described by the article [Determining Which DLLs to Redistribute](determining-which-dlls-to-redistribute.md).
5252

5353
1. Select the item **Primary Output from ProjectName (Active)**, right-click and choose **Create Shortcut to Primary Output from ProjectName (Active)**. A new item named **Shortcut to Primary Output from ProjectName (Active)** appears. You may rename the shortcut item, then drag and drop the item into the **User's Programs Menu** node on the left side of the window.
5454

5555
1. On the menu bar, choose **Build** > **Configuration Manager**. In the **Project** table, under the **Build** column, check the box for the deployment project. Click **Close**.
5656

5757
1. On the menu bar, choose **Build** > **Build Solution** to build the MFC project and the deployment project.
5858

59-
1. In the solution folder, locate the setup.exe program that was built from the deployment project. You can copy this file (and the .msi file) to install the application and its required library files on another computer. Run the setup program on a second computer that does not have the Visual C++ libraries.
59+
1. In the solution folder, locate the setup.exe program that was built from the deployment project. You can copy this file (and the .msi file) to install the application and its required library files on another computer. Run the setup program on a second computer that doesn't have the Visual C++ libraries.
6060

6161
## See Also
6262

docs/ide/walkthrough-deploying-a-visual-cpp-application-to-an-application-local-folder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ Describes how to deploy a Visual C++ application by copying files to its folder.
1919

2020
- A computer that has Visual Studio installed.
2121

22-
- Another computer that does not have the Visual C++ libraries.
22+
- Another computer that doesn't have the Visual C++ libraries.
2323

2424
### To deploy an application to an application-local folder
2525

2626
1. Create and build an MFC application by following the steps in [Walkthrough: Deploying a Visual C++ Application By Using a Setup Project](walkthrough-deploying-a-visual-cpp-application-by-using-a-setup-project.md).
2727

2828
1. Copy the appropriate MFC and C Run-Time (CRT) library files from the Visual Studio installation directory in the \\VC\\redist\\*version* folder, and then paste them in the \Release\ folder of your MFC project. For more information about other files that you might have to copy, see [Determining Which DLLs to Redistribute](determining-which-dlls-to-redistribute.md).
2929

30-
1. Run the MFC application on a second computer that does not have the Visual C++ libraries.
30+
1. Run the MFC application on a second computer that doesn't have the Visual C++ libraries.
3131

3232
1. Copy the contents of the \Release\ folder and paste them in the application folder on the second computer.
3333

0 commit comments

Comments
 (0)