Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio C++ - Resource View blank?

I have a Visual Studio 2010 C++ project which was copied from another visual studio project and renamed. The project compiles fine and works. However recently, I went to the 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 get this back? I'm thinking there is some cache somewhere?

UPDATE

I should add that this solution is a multi-project solution and normally in the resource view even if a given project does not have resource files you will still see a "folder" for the project in the resource view tree view. There are no "folders" for any of the projects in the solution.

I should also add that other solutions that I open in visual studio will display the resource view fine.

like image 285
User Avatar asked Nov 12 '11 00:11

User


People also ask

How do I add resource view in Visual Studio?

Any managed resources you want to edit must be linked resources and Visual Studio resource editors don't support editing embedded resources. To view a managed resource in a resource editor, in Solution Explorer, double-click the resource, for example, Bitmap1. bmp, and the resource opens in the appropriate editor.

What is .RC file in Visual Studio?

RC files mostly belong to Visual Studio by Microsoft. An RC file is a resource script used by compilers for applications written in various programming languages. A resource script (RC) file contains information such as source file references, version information, and identifiers for an application.

What is a Windows resource file?

A resource file is a text file with the extension . rc. The file can use single-byte, double-byte, or Unicode characters. The syntax and semantics for the RC preprocessor are similar to those of the Microsoft C/C++ compiler. However, RC supports a subset of the preprocessor directives, defines, and pragmas in a script.

What is resources in visual programming?

A resource is a text file that allows the compiler to manage objects such as pictures, sounds, mouse cursors, dialog boxes, etc. Microsoft Visual Studio makes creating a resource file particularly easy by providing the necessary tools in the same environment used to program.


3 Answers

It might be because your Browsing/Navigation Database is disabled.

Check the current setting under: Tools -> Options -> Text Editor -> C++ -> Advanced. "Disable Database" should be false.

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

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

like image 50
s0ndeb0k Avatar answered Oct 12 '22 06:10

s0ndeb0k


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

like image 27
Atti Avatar answered Oct 12 '22 04:10

Atti


I had the same issue today, and my class browser was also empty. I fixed it by deleting the ipch directory and the sdf file from the solution's directory. Visual Studio reinitialized the intellisense databases, and the view were back.

like image 37
Kristian Duske Avatar answered Oct 12 '22 05:10

Kristian Duske