Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Are there some tools to delete redundant resource in MFC project?

Are there some tools to delete redundant resource in MFC project?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiotoolshelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Falconapollo
    wrote on last edited by
    #1

    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?

    L D 2 Replies Last reply
    0
    • F Falconapollo

      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?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      V 1 Reply Last reply
      0
      • L Lost User

        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

        V Offline
        V Offline
        Vaclav_
        wrote on last edited by
        #3

        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”.

        L 1 Reply Last reply
        0
        • F Falconapollo

          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?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • V Vaclav_

            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”.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups