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
Verify that your system meets all setup requirements described in the Visual Studio Setup start page.
Install Visual Studio and follow all setup and installation instructions for the included samples.
To build the sample
Open the Dia2dump.sln file in Visual Studio. (If necessary, Visual Studio will first help you upgrade the Dia2dump project.)
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.
On the Build menu, click Rebuild Solution.
Close Visual Studio.
To run the sample
Open a command prompt and type the following: