VS2008: "Resource file opened in another editor"

GrinderZ picture GrinderZ · Jun 14, 2013 · Viewed 27.2k times · Source

But it's a lie!

Good day to all! I have the following problem: when I try to open the resource file PriceCalculationUI.rc Visual Studio 2008 tells me that the file is opened in another editor (in vs2008 I have only 1 opened tab with .cpp file). I checked this information: run Process Explorer and searched for PriceCalculationUI handle. In results I found nothing but devenv.exe that uses PriceCalculationUI directory.

What can I do next?

Thanks for any help!

Additional information: when I rebuild (not build) the project I see dialog window with information that file PriceCalculationUI.rc was edited by another program.

Answer

Edward Clements picture Edward Clements · Jun 14, 2013

I have had problems with this error (also in Visual Studio 2010) even when I don't have the .rc file / resource.h file open.

The only way to fix this for me was to manually open both files in the text editor (sometimes I get a msg box "The document '[path]\resource.h' is already open. Do you want to close it? which I answer with Yes), close both the files and try to open the resource file in the resource view.

This MS Connect page suggests closing the solution, deleting the .suo file and reopening the solution.