VS2005/VS2008无法创建VC++智能设备项目的终级解决办法

  今天在VS2008里创建VC++智能设备项目时发现创建失败的情况。奇怪的是,创建VC++其它类型项目(如MFC、ATL)等均无问题,换到VS2005平台上也是一样。在网上搜了一下,说是IE7引起的问题。回想了一下,我前两天正好重新安装了IE8,莫非真是IE引起的问题?抱着试一试的态度,我尝试了多种解决问题的办法,以下一一列举说明。

(1)给Visual Studio安装补丁包

  我仅尝试对VS2008安装SP1补丁包(VS2005我没试,因为安装补丁包的时间太长),但很遗憾,成功安装补丁并重启机器后,问题依旧。

(2)老外的解决办法

  If you've tried to create a smart device Win32 project on Windows Vista or after installing IE7, you might have seen a failure with a message in the status bar saying "project creation failed". It's a known issue, and has been fixed in SP1, but if you can't install that, there's a workaround:
  1. Close VS
  2. Start RegEdit.exe
  3. Find the following registry entry:
  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\PreApproved
  4. Add a new entry and name it
  {D245F352-3F45-4516-B1E6-04608DA126CC}
  5. Close RegEdit
  6. Start VS
  7. Try to create a Smart Device C++ project
  Thanks to Gangadhar on the VC++ for Devices team for the writeup, and Chris for posing the question on the Device MVPs discussion list.

  看到网上很多人都在转这个,但经过我的测试,该方法依然无效!

(3)终级解决办法 

  1、打开Regedit

  2、找到键值“HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\”

  3、找到项“1000”,如果不存在,则创建

  4、在“1000”项中新建DWORD值“1207”,Value=0

  5、关闭Regedit,运行VS,新建Smart Device Project。

  很多人都反映这个可以解决Vista系统中VS2005和IE7的环境下的问题。但我是在XP中的VS2008和IE8,问题同样可以解决。看来这个才是真正的终级解决办法!

posted @ 2011-03-14 11:00  半熟英雄  阅读(1575)  评论(0编辑  收藏  举报