添加新项目时出现错误HRESULT E_FAIL

添加新项目时出现错误HRESULT E_FAIL

问题描述:

在studio 2010中.右键单击以添加新项目,选择.h或.c ++文件,单击确定

In studio 2010. Right click to add a new item, select .h or .c++ file, click OK

此错误显示

添加新项目时出现错误HRESULT E_FAIL

Error HRESULT E_FAIL when adding new items

添加的文件未显示在项目中.退出并重新启动Dev Studio 2010,文件在那里.

The file added does not show in the project. Quit and restart Dev Studio 2010 and the file is there

嗨icuurd12b42,

Hi icuurd12b42,

感谢您的信息.

尝试新项目时可以重现此问题吗?

Can you reproduce this issue when you try a new project?

我建议您从控制面板修复Visual Studio,以查看是否可以解决此问题:

I recommend you repair Visual Studio from control panel to see if this issue can be fixed:

打开控制面板->程序->在程序和功能中,右键单击Microsoft Visual Studio 2010->卸载/更改->修复/重新安装.

open your Control panel -> Programs -> Programs and Features, right click Microsoft Visual Studio 2010 -> Uninstall/Change -> repair/reinstall.

此致