原因,与VS2005集成时会发生此错误。
解决方法,补丁:ftp://ftp.compuware.com/pub/driverstudio/outgoing/patch/DSDDKEnv.zip
>Extract it into a temp directory.
>Copy the file DSDDKEnv8.dll into the <INSTALL_DIR>/DriverStudio/Common/Bin directory. >Select "yes" if prompted to copy over an existing one.
>Copy the file DSDDKEnv8UI.dll into the <INSTALL_DIR>/DriverStudio/Common/Bin/1033 >directory. Select "yes" if prompted to copy over an existing one.
>Then unregister the older version
>Go to start->run and type "regsvr32 -u >"<INSTALL_DIR>/DriverStudio/Common/Bin/dsddkenv8.dll"
>Then register the new copy
>Go to start->run and type "regsvr32 >"<INSTALL_DIR>/DriverStudio/Common/Bin/dsddkenv8.dll"
>DriverStudio menu should now be part of the VisualStudio 2005 menu
如果在vs2005+补丁后生成的解决方案文件.sln无法双击打开工程时可以使用文本编辑器打开.sln文件在第二行加入“# Visual Studio 2005”保存即可,例如:
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "aa", "driver/aa.vcproj", "{6A0A9D07-FD4C-4D7C-805D-48D25FB4BE6C}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "aaApp", "app/aaApp.vcproj", "{99FD6FD2-86EB-4177-BC0F-00F692130E58}"
EndProject
....
根治方法:
打开/DriverStudio/DriverWizard/Templates目录的WdmDriver.sln.net文件找到“Microsoft Visual Studio Solution File, Format Version 9.00”这一行,在其后下一行加入“# Visual Studio 2005”保存即可,以后用DriverWizard生成的工程就可以正常双击打开了。
修改后象这样:
...
$$FILE $$ProjectName$$.sln
$$IFDEF GENERATE_SLN2002
Microsoft Visual Studio Solution File, Format Version 7.00
$$ENDIF
$$IFDEF GENERATE_SLN2003
Microsoft Visual Studio Solution File, Format Version 8.00
$$ENDIF
$$IFDEF GENERATE_SLN2005
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
$$ENDIF
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "$$ProjectName$$", "Driver/$$ProjectName$$.vcproj", "$$ProjectGuid$$"
EndProject