该死的IE7---VC++2005创建智能设备项目失败的解决方法

来源:互联网 发布:淘宝联盟买家有优惠吗 编辑:程序博客网 时间:2024/04/30 17:53
最近遇到一个几乎让人抓狂的错误
起因是要用vc++2005新建智能设备项目,奇怪的是每次向导出现并小闪了一下,然后消失,界面弹回原来的创建项目的对话框。状态栏提示“正在创建项目 智能设备项目创建失败。”,要不就是脚本执行错误。重装,换系统,换IIS,问题依旧。万恶的微软啊……
今天运气不错查到原因,原来是IE7在作祟。解决方法如下:

Are you having issues creating native projects?

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.


真有众里寻他千百度,蓦然回首,那人却在灯火阑珊处的感慨啊。
今天心情不错~~