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. VISUAL C++ resource.h/rc madness mess

VISUAL C++ resource.h/rc madness mess

Scheduled Pinned Locked Moved C / C++ / MFC
c++databaselearningworkspace
3 Posts 3 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.
  • A Offline
    A Offline
    andwan0
    wrote on last edited by
    #1

    This is really for those Visual C++ 6.0 programmers out there. I have a workspace which builds 3 apps & dozen of DLLs. Each project has it's own resources (resource.h & corresponding RC file). I like to merge the resources of the 3 main apps into one. I notice the 3 apps share some common strings. However, due to 10-20 years of development, the defined constants that have same name may not have same number. App1 resource.h #define IDS_STRING1 82 App2 resource.h #define IDS_STRING1 79 App3 resource.h #define IDS_STRING1 83 Am wondering if there's a tool out there that can clean up multiple resources... to make final/eventual merging easier. Problems lie when it's a common define constant, but the string literal are actually different. So maybe should have a batch routine to index/map by the string literal first, then ensure the define constant matches, if not then flag it. My resource.h files are huge, millions of lines... hence why am wondering if there exists a resource.h cleaner.

    H A 2 Replies Last reply
    0
    • A andwan0

      This is really for those Visual C++ 6.0 programmers out there. I have a workspace which builds 3 apps & dozen of DLLs. Each project has it's own resources (resource.h & corresponding RC file). I like to merge the resources of the 3 main apps into one. I notice the 3 apps share some common strings. However, due to 10-20 years of development, the defined constants that have same name may not have same number. App1 resource.h #define IDS_STRING1 82 App2 resource.h #define IDS_STRING1 79 App3 resource.h #define IDS_STRING1 83 Am wondering if there's a tool out there that can clean up multiple resources... to make final/eventual merging easier. Problems lie when it's a common define constant, but the string literal are actually different. So maybe should have a batch routine to index/map by the string literal first, then ensure the define constant matches, if not then flag it. My resource.h files are huge, millions of lines... hence why am wondering if there exists a resource.h cleaner.

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      Here you go: Resource ID Organiser Add-In for Visual C++ 5.0/6.0/.NET[^]

      Best wishes, Hans


      [Hans Dietrich Software]

      1 Reply Last reply
      0
      • A andwan0

        This is really for those Visual C++ 6.0 programmers out there. I have a workspace which builds 3 apps & dozen of DLLs. Each project has it's own resources (resource.h & corresponding RC file). I like to merge the resources of the 3 main apps into one. I notice the 3 apps share some common strings. However, due to 10-20 years of development, the defined constants that have same name may not have same number. App1 resource.h #define IDS_STRING1 82 App2 resource.h #define IDS_STRING1 79 App3 resource.h #define IDS_STRING1 83 Am wondering if there's a tool out there that can clean up multiple resources... to make final/eventual merging easier. Problems lie when it's a common define constant, but the string literal are actually different. So maybe should have a batch routine to index/map by the string literal first, then ensure the define constant matches, if not then flag it. My resource.h files are huge, millions of lines... hence why am wondering if there exists a resource.h cleaner.

        A Offline
        A Offline
        Albert Holguin
        wrote on last edited by
        #3

        Why would you want to combine resources? I find it easier and cleaner to have the separation...

        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