Visual Studio C ++ - View Resources Empty?

I have a Visual Studio 2010 C ++ project that has been copied from another visual studio project and renamed. The project compiles and works. However, I recently switched to Resource View to edit some dialogs, and the window is completely empty. I canโ€™t remember if I went there since I copied the project or not:

enter image description here

Any ideas on how I can return this? I think there's a cache somewhere?

UPDATE

I have to add that this solution is a multi-project solution and usually in the resource view, even if this project does not have resource files, you will still see the "folder" for the project in the resource view tree. There are no โ€œfoldersโ€ for any of the projects in the solution.

I should also add that the other solutions that I open in visual studio will display a great view of resources.

+6
source share
6 answers

I had a similar problem that I solved with reloading projects in the solution (unload projects, then reload all projects).

+4
source

Perhaps this is due to the fact that your view / navigation database is disabled.

Check the current setting in: Tools โ†’ Options โ†’ Text Editor โ†’ C ++ โ†’ Advanced. "Disable database" must be false.

This is a mistake, as far as I know, and they said that they are working on a problem.

Additional information: http://connect.microsoft.com/VisualStudio/feedback/details/535971/solution-resource-view-empty-when-option-disable-database-c-is-set-to-true

+20
source

I had the same problem today and my class browser was also empty. I fixed it by deleting the ipch directory and sdf file from the solutions directory. Visual Studio reinitialized the intellisense databases and the view returned.

+2
source

Try finding the .rc file in your Solution Explorer , then double-click it to reload it in Resource View .

Also check that the .vcxproj file .vcxproj to the correct .rc file (open it in a text editor). You may have renamed it or something like that.

0
source

Woohoo! To guess. Since each project usually has an entry in the View Resources tab, regardless of whether it has resources or not, I decided to add a new temp project to my solution to see how visual studio handles this. So I right-clicked on my solution and clicked Add-> New project .. and added a new Win32 project with setting up the static library and MFC. As soon as I added the project and went to the resource overview, all my other projects were back! Then I just deleted the temp project I created.

I'm not sure what he did, but he had to get the visual studio to rebuild some internal cache or something like that.

0
source

I had the same problem: Resource View was completely empty for a multi-project solution.

I moved the entire directory of heirarchy top files to another location (another location on the disk), which probably had something to do with it.

After I finally changed all the paths (files in projects, included projects and paths to them, etc.) and started working on development, I noticed that the resource view was empty, and clicking on the .rc file didnโ€™t can not see.

But saving the solution and restarting did the trick.

0
source

Source: https://habr.com/ru/post/901330/


All Articles