I'm trying to dump the signature of a PDB on Windows 7 x64 using Visual Studio 2017 and its dia2dump. I loaded C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\DIA2Dump.sln
. It built successfully:
1>------ Rebuild All started: Project: Dia2Dump, Configuration: Debug x64 ------ 1>stdafx.cpp 1>regs.cpp 1>PrintSymbol.cpp 1>dia2dump.cpp 1>Generating Code... 1>Dia2Dump.vcxproj -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.exe 1>Dia2Dump.vcxproj -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.pdb (Partial PDB) ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
When I run it on the PDB, I get the following error:
C:\>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.exe" file.pdb CoCreateInstance failed - HRESULT = 80040154
Just in case, I ran the following and it was successful, but dia2dump failed with the same error (also after reboot):
regsvr32 "C:\Program Files\Common Files\Microsoft Shared\VC\msdia100.dll"
How do I debug this?