Visual Studio 2005“正在创建项目‘XXX’,创建项目失败”
来源:互联网 发布:古代疆域图软件 编辑:程序博客网 时间:2024/06/04 18:18
在打开一些VC++的sample时没有问题,但是自己着手创建任何VC++的项目时,出现以下问题:在输入工程名、设置路径后,都会在状态栏显示“正在创建项目‘XXX’,创建项目失败”。耽搁了好几天,一直没能解决,无法找到错误日志,也想不明白啥原因,于是昨天花了近一小时去卸载与重装VS2005(机器烂了点没办法 ^_^),问题仍然没解决....
于是搜索了一下相关文档,看来今天运气不错,用半调子英文把错误信息转成" smart device, project creation failed" google了一下,很快就找着答案了。
Are you having issues creating native projects?
If you've tried tocreate a smart device Win32 project on Windows Vista or afterinstalling IE7, you might have seen a failure with a message in thestatus bar saying "project creation failed". It's a known issue, andhas been fixed in SP1, but if you can't install that, there's aworkaround:
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 Gangadharon the VC++ for Devices team for the writeup, and Chris for posing thequestion on the Device MVPs discussion list.
原来又是IE8在作怪,找把IE抛弃了,它还是来坑人,烦的狠啊。
说明:{D245F352-3F45-4516-B1E6-04608DA126CC} 指的是
D:/Program Files/Microsoft Visual Studio 8/Common7/IDE/ProjWiz.dll,由于IE的安全机制把HTML的向导页面禁止了。
照着解决办法做了一遍,啊哈,怎么还不行?
不过心里已经基本有底了, JeffAbraham中讲的是IE7,而我的还是IE6啊,会不会是偶用FireFox的原因?把默认浏览器改成该死的IE(并启用IE选项中的脚本调试,否则还是老样子),再次创建项目,出现JS错误,如下图:
只能调试了,common.js 4039行附近的代码如下:
1 /******************************************************************************
2 Description: When constructing a class name based on project or other user input,
3 Warn user (MessageBox) if the generated class name is a reserved name, and
4 add one digit to the name to avoid the reserved name.
5 Ex: User names the project "Atl" --> C+Atl+Module is a reserved name -->
6 Warning MessageBox plus generated name is CAtl1Module.
7 strPrefix: The first part of class name (Ex: project name - Atl).
8 strPostfix: The second part of class name (Ex: Module).
9 ******************************************************************************/
10 function ConstructClassName(strPrefix, strPostfix)
11 {
12 var strCandidate;
13 strCandidate = "C" + strPrefix + strPostfix;
14 for(var i = 1; i<=10; i++)
15 {
16 var bValid = (window.external.dte.VCLanguageManager.ValidateIdentifier(strCandidate) &&
17 !window.external.dte.VCLanguageManager.IsReservedName(strCandidate));
18 if(!bValid)
19 window.external.ReportError();
20 else
21 break;
22 strCandidate = "C" + strPrefix + i.toString() + strPostfix;
23 }
24 return strCandidate;
25 }
26
原来window.external.dte对象为空,这又是什么原因呢?
修改IE的管理加载项,竟然发现所有加载项被禁用,并且无法启用,RadioButton都是灰色的(费了好几个小时找原因,原以为是我用了TotalCommander中的注册表优化功能引起的,后来证明不是)。
原来,很久很久以前,我装完机器之后设置了组策略-“除非在加载项列表中特别指定,拒绝所有加载项“(位置:组策略-用户配置-管理模板-Windows组件-Internet Explorer-安全功能-加载项管理)修改过来,重新启动VS2005,并创建VC项目,终于看到可爱的向导了......
(实在搞不定,你最好把IE8卸载了吧!我觉得Firefox很不错!)
本文转自:http://www.cnblogs.com/lvseganlan/articles/968285.html
- Visual Studio 2005“正在创建项目‘XXX’,创建项目失败”
- Microsoft Visual Studio 2012 创建项目失败
- Visual studio 创建项目失败vstemplate
- visual studio 2010 c++ 项目创建失败的解决方案
- Microsoft Visual Studio 2015项目创建失败 解决办法
- Visual Studio Online 创建项目
- Android Studio创建项目失败
- Visual Studio 2005创建VC++智能设备项目失败的解决方法
- Visual Studio 2008无法创建silverlight项目
- 利用Visual Studio SDK创建项目模板
- 01-使用MicroSoft Visual Studio创建项目
- Visual Studio创建项目提示错误
- visual studio 2017 创建C项目工程
- Visual Studio Code创建C#项目
- 关于android studio创建项目失败
- visual studio2005/visual studio2008 创建智能设备项目失败
- 如何为 Visual Studio 2005 或 Visual Studio .NET 安装和部署项目创建快捷方式
- vs2008创建项目失败
- C# GDI+双缓冲技术(防止移动时,窗口闪烁)
- 没有一个真正歌手的时代,没有一首好歌的年代
- 分词测试
- 面向对象不单单就是继承
- windows环境下PXE安装win2k、winXP、win2k3(转)
- Visual Studio 2005“正在创建项目‘XXX’,创建项目失败”
- 用CImage加载内存里的Image
- 关于C#服务器控件FileUpload上传图片并保存到数据库
- 银光志—Silverlight 3.0技术详解与最佳实践上架中文亚马逊-卓越网和当当网
- Fedora如何退出X-window进入字符界面
- 收藏如何通过父容器查找它的子对象 [Flex]
- IE6中Div 遮罩层覆盖不住select控件的解决方法
- request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
- 网页设计Meta标签之详解