Reputation: 849
How do I delete a resource symbol in Visual Studio 2010 (Visual C++) if I delete a menu item and want to delete the resource symbol associated with that menu item...
The IDE says the symbol is still in use in the Resource Symbols dialog, even though I have deleted the menu item.
I made a video showing the behavior of visual studio which says the resource symbol is still "in use" even though from what I can see it is not in use. https://www.youtube.com/watch?v=O9RB5Q2RuF4
It is not mandatory that you watch the video, I made it simply because it proves that I am not just imagining things or describing the problem incorrectly. The only real way to prove peculiar IDE behaviour is to show a video of the editor making its mistakes or showing its problems.
Upvotes: 0
Views: 2009
Reputation: 190
Edit the header file manually and delete the line containing the ID.
I found it best to do this in another editor (i.e. Notepad++). When you switch back to Visual Studio it will say "File edited by another program", just click reload. It will give an error if you deleted an ID that's actually in use. In that case undo your changes in the other editor and re-save. Then you may have to reopen visual studio to get it to reload the files.
It's not the ideal solution (I found this question because I was searching for a better one) but it at least resolves the problem.
Upvotes: 1
Reputation: 145419
A recent edit of the question makes this answer irrelevant. However I'm not going to chase a changing question.
Edit → Resource Symbols…
Disclaimer: I have not watched the linked to video. Please do consider that some people may have low bandwidth connections. Also consider google-ability of what you post. A link to offsite information is not googleable. Post all relevant information here, and as text (in a few cases enlightening small screenshots can be good).
Upvotes: 1