Skip to content

Commit bfdfc3f

Browse files
author
Colin Robertson
committed
Add redirect for deleted file, acrolinx fixes.
1 parent 58ce243 commit bfdfc3f

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "docs/debugger/debug-interface-access/dia2dump-cpp-source-file.md",
5+
"redirect_url": "/visualstudio/debugger/debug-interface-access/dia2dump-sample",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path": "docs/extensibility/shell/shell-isolated-or-integrated.md",
510
"redirect_url": "https://vspartner.com/pages/vsshells",

docs/debugger/debug-interface-access/dia2dump-sample.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ms.workload:
2020

2121
The Dia2dump sample shows how to use the Microsoft Debug Interface Access Software Development Kit (DIA SDK) to query a PDB file for information.
2222

23-
The Dia2dump sample is installed with Visual Studio and contains the solution and source files. The compiled executable runs from the command line and can display the contents of an entire program database (.pdb) file, or just the sections you are interested in.
23+
The Dia2dump sample is installed with Visual Studio and contains the solution and source files. The compiled executable runs from the command line. It can display the contents of an entire program database (.pdb) file, or just the sections you're interested in.
2424

2525
## Install the sample
2626

@@ -30,7 +30,7 @@ When installed, the sample is in your Visual Studio installation directory, in a
3030

3131
## Build the sample
3232

33-
Because the installation directory is a protected directory by default, you must use an elevated command prompt or instance of Visual Studio (run as administrator) to build and edit the solution in this location. It may be easier to copy the files from the sample directory to another directory first, and then build the sample. This is the procedure we recommend.
33+
By default, the installation directory is a protected directory. That means you must use an elevated Developer command prompt or instance of Visual Studio to build and edit the sample solution in this location. To simplify the build, we recommend you first copy the files from the sample directory to another directory, such as a folder in your Documents folder, and then build the sample.
3434

3535
### To build the Dia2Dump sample in Visual Studio
3636

@@ -44,27 +44,27 @@ Because the installation directory is a protected directory by default, you must
4444

4545
1. In the **Additional Include Directories** property, choose the dropdown control, then choose **Edit**.
4646

47-
1. In the **Additional Include Directories** dialog, in the edit field, enter the `$(VSInstallDir)DIA SDK\include` directory. This guarantees that the compiler can find the dia2.h file. Choose **OK** to save your changes.
47+
1. In the **Additional Include Directories** dialog, in the edit field, enter the `$(VSInstallDir)DIA SDK\include` directory. Add this directory to guarantee that the compiler can find the dia2.h file. Choose **OK** to save your changes.
4848

4949
1. Choose **OK** to save your changes to the project properties.
5050

51-
1. On the **Build** menu, choose **Rebuild Solution**. By default, this builds a Debug version of the sample, located in a Debug subdirectory of the solution directory.
51+
1. On the **Build** menu, choose **Rebuild Solution**. By default, Visual Studio builds a Debug version of the sample, located in a Debug subdirectory of the solution directory.
5252

5353
1. Close Visual Studio.
5454

5555
### To build the Dia2Dump sample at the command line
5656

57-
1. In a Developer command prompt window, change to the directory where you copied the sample files. If you did not copy the sample to another directory, you must use an elevated (run as administrator) Developer command prompt window.
57+
1. In a Developer command prompt window, change to the directory where you copied the sample files. If you didn't copy the sample to another directory, you must use an elevated (run as administrator) Developer command prompt window.
5858

59-
1. Enter the command `nmake makefile` to build the default Debug configuration of Dia2Dump.exe.
59+
1. Enter the command `nmake makefile` to build the default Debug configuration of dia2dump.exe.
6060

6161
## Run the Dia2Dump sample
6262

63-
Dia2Dump.exe relies on the msdia*version*.dll COM server to provide its services. In Visual Studio 2015 and Visual Studio 2017, the version is msdia140.dll. If the msdia*version*.dll COM server is not initialized, you must register it before dia2dump.exe can work. The DIA SDK directory has a bin subdirectory that contains the x86 version of the DLL. A version for x64 architecture machines is in bin\amd64, and a version for ARM is in bin\arm. To register the dll, open an elevated Developer command prompt window, and change to the directory that contains the version for your machine architecture. Enter the command `regsvr32 msdia140.dll` to register the COM server.
63+
Dia2Dump.exe relies on the msdia*version*.dll COM server to provide its services. In Visual Studio 2015 and Visual Studio 2017, the version is msdia140.dll. If the msdia*version*.dll COM server isn't initialized, you must register it before dia2dump.exe can work. The DIA SDK directory has a bin subdirectory that contains the x86 version of the DLL. A version for x64 architecture machines is in bin\amd64, and a version for ARM is in bin\arm. To register the dll, open an elevated Developer command prompt window, and change to the directory that contains the version for your machine architecture. Enter the command `regsvr32 msdia140.dll` to register the COM server.
6464

6565
### To run the sample
6666

67-
1. Open a command prompt and change to the directory that contains the Dia2Dump.exe that you built.
67+
1. Open a command prompt and change to the directory that contains the dia2dump.exe that you built.
6868

6969
1. Enter the command `dia2dump filename` where *filename* is the name of a PDB file to examine. If the PDB file is in another directory, use the full path to the file as *filename*. This command lists all the data in the PDB file.
7070

0 commit comments

Comments
 (0)