We recommend using Visual Studio 2017

Dia2dump Sample


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Dia2dump Sample.

The Dia2dump sample is installed with Visual Studio and contains the Dia2dump.cpp source file. The compiled executable runs from the command line and displays the contents of an entire program database (.pdb) file.

To install the sample

  1. Verify that your system meets all setup requirements described in the Visual Studio Setup start page.

  2. Install Visual Studio and follow all setup and installation instructions for the included samples.

To build the sample

  1. Open the Dia2dump.sln file in Visual Studio. (If necessary, Visual Studio will first help you upgrade the Dia2dump project.)

  2. In the project property pages, in the C/C++ | General | Additional Include Directories property, specify the ..\DIA SDK\include directory. This guarantees that the compiler can find the dia2.h file.

  3. On the Build menu, click Rebuild Solution.

  4. Close Visual Studio.

To run the sample

  1. Open a command prompt and type the following:

    dia2dump filename  

Dia2dump.cpp Source File
How to: Troubleshoot Unsuccessful Visual Studio Project Upgrades