崩溃后,Visual Studio 2008不会打开资源文件 [英] Visual Studio 2008 won't open resource file after crash

查看:105
本文介绍了崩溃后,Visual Studio 2008不会打开资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在戴着64位Windows Vista Home Premium SP1的Intel Core i7处理器的Dell Studio XPS 435T计算机上使用Visual Studio 2008。我正在使用MFC C ++编写程序。

我打开了很多源文件,包括编辑多个对话框的资源编辑器。我选择了项目 - >显示所有文件选项和Visual Studio崩溃。崩溃后我无法再打开我的.rc文件。我收到错误消息"在另一个编辑器中打开"。

我现在关闭了所有打开的文件。什么都没有打开,更不用说.rc文件了。

我已重新启动机器,试图清除锁定,以便打开我的文件。我将.rc文件与源代码控制中的文件进行了比较,文件之间没有区别。我已经触及了Visual Studio之外的.rc文件,并得到了文件已在Visual Studio之外修改过的消息我是否要重新加载它,是的,但文件似乎仍然被锁定,因为我收到消息" ;在另一个编辑器中打开"。

这个问题曾经出现过,我以某种方式获得了.rc文件的访问权限,但我无法重现我所做的事情以使错误消失!如何删除.rc文件中删除内部锁定?

I am using Visual Studio 2008 on a Dell Studio XPS 435T machine with Intel Core i7 processor on 64-bit Windows Vista Home Premium SP1.  I am writing a program using MFC C++.

I had many source files open, including the resource editor to edit several dialog boxes.  I selected the Project -> Show All files option and Visual Studio crashed.  After the crash I can no longer open my .rc file.  I get the error message "Opened in another editor". 

I now have closed all of the open files.   Nothing is open, let alone the .rc file.

I have rebooted my machine, trying to get the lock cleared so that I can open my file.  I have compared my .rc file with the one in source control and there is no difference between the files.  I have touched the .rc file outside of Visual Studio, and gotten the message that the file has been modified outside of Visual Studio do I want to reload it,  said yes, but the file still appears to be locked because I get the message "Opened in another editor". 

This problem appeared once before, and I somehow got access to the .rc file, but I can't reproduce what I did to make the error go away!  How do I remove the remove the internal lock on the .rc file?

推荐答案

我找到了解决方法...

使用解决方案资源管理器并右键单击.rc文件选择打开方式...,使用任何文本编辑器打开.rc文件。即使尝试打开.rc文件定期导致"在另一个编辑器中打开",这也会成功。错误。关闭文件。这似乎删除了锁。

现在,当我尝试使用资源编辑器时,它可以打开文件。
I found a work around...

Use the Solution Explorer and right click on the .rc file select Open With..., Open the .rc file with any of the text editors.  This succeeds even though trying to open the .rc file regularly results in the "Opened in another editor" error.  Close the file.   This seems to remove the lock.

Now when I try to use the resource editor it can open the file.


这篇关于崩溃后,Visual Studio 2008不会打开资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆