vs2005安装 和 Fatal Error C1902

win10系统不能激活

win7可以激活,运行会出现兼容错误,解决办法装2个sp1补丁

拷贝mspdb80.dll到系统目录后会出现 Fatal Error C1902,

解决方法如下:

VC++2005 :Fatal Error C1902:程序数据库管理器不匹配;请检查安装 解决
安装VC++ SP1后,调试程序时候提示错误 Fatal Error C1902:程序数据库管理器不匹配;请检查安装,不知道什么意思,于是Google了一下,网上有说是“创建程序数据库文件(.pdb) 时所使用的DBI.dll 版本比编译时发现的版本新。在系统上安装最新的DBI.dll 版本。 ”不知道怎么安装新的DBI.dll,于是又去MSDN上搜索错误信息,于是搜出了这么一条:Fatal Error C1902 (C++) :A program database file (.pdb) was created using a newer version of mspdb80.dll than the one found while compiling.This error usually indicates that mspdbsrv.exe or mspdbcore.dll are missing or have different versions from mspdb80.dll. Ensure matching versions of mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll are installed on your system.
意思好像是:程序的数据库文件(.pdb)被一个比编译时版本新的 mspdb80.dll 所生成,错误通常指示 mspdbsrv.exe 或 mspdbcore.dll 丢失或者其版本和 mspdb80.dll 的版本不同,确定这三个文件的相同版本安装在系统里。
于是,我到我VC安装目录 Program FilesMicrosoft Visual Studio 8VCin 里一看,果然这三个文件爱你的版本不一样,然后我到目录 D:Program FilesMicrosoft Visual Studio 8Common7IDE 里重新 copy 了这个三个相同版本的文件到 Program FilesMicrosoft Visual Studio 8VCin ,然后重新编译程序,果然没有那个错误了

原文地址:https://www.cnblogs.com/hjbf/p/11350477.html