Are there some tools to delete redundant resource in MFC project?
-
Sometimes, I add some resource(png, string, bmp) to use. But because of some reasons, these resources may get redundant. The project is so large, many people join the development. So, there are lots of redundant resources. Now, we need to translate the language in resource into other languages. So, we have to delete all redundant resource to increase the efficency. Besides, have to remove all unnecessary png, bmp and other resources to make the final setup.exe smaller. Resource Symbol Editor of Visual Studio is hard to use, I can delete an item one time. I need to find another tool. I'm wondering if there are some existing tools to help me to that. Anybody can help me?
-
Sometimes, I add some resource(png, string, bmp) to use. But because of some reasons, these resources may get redundant. The project is so large, many people join the development. So, there are lots of redundant resources. Now, we need to translate the language in resource into other languages. So, we have to delete all redundant resource to increase the efficency. Besides, have to remove all unnecessary png, bmp and other resources to make the final setup.exe smaller. Resource Symbol Editor of Visual Studio is hard to use, I can delete an item one time. I need to find another tool. I'm wondering if there are some existing tools to help me to that. Anybody can help me?
-
None that I am aware of. This would not be easy to do as any such tool would need to analyse every file in the project to see if there were any references to the resources before deleting them.
Use the best guess
-
Sometimes, I add some resource(png, string, bmp) to use. But because of some reasons, these resources may get redundant. The project is so large, many people join the development. So, there are lots of redundant resources. Now, we need to translate the language in resource into other languages. So, we have to delete all redundant resource to increase the efficency. Besides, have to remove all unnecessary png, bmp and other resources to make the final setup.exe smaller. Resource Symbol Editor of Visual Studio is hard to use, I can delete an item one time. I need to find another tool. I'm wondering if there are some existing tools to help me to that. Anybody can help me?
Redundant or unreferenced? Unless VS messed up and assigned two separate resources the same ID, I'm not sure how code could know if a resource was redundant.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
Being a messy coder I run into this all the time. I believe there were apps called “code beautifier” which did that or something similar, but I may be wrong. I hope nobody will make a suggestion that “memory is cheap, don't worry about it”.
Code beautifiers, merely tidy up your source code. I don't believe they can tell you which of your files may no longer be needed. Why not just move all the resources away, try to build the project, and you will get a list of missing files.
Use the best guess