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. Resource.h File Checking

Resource.h File Checking

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
10 Posts 8 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
    Andy202
    wrote on last edited by
    #1

    I was doing a lot of cut and paste on several dialogs, but then I look at the resource.h file, some defines have the same value. Are they any programs to check this file and correct the problems. See sample below:- #define IDC_POWER_LABEL 1742 #define IDC_MAIN_RX_SQUELCH_LABEL 1743 #define IDC_MODULATION_LABEL 1744 #define IDC_COMBO1 1745 #define IDC_COMBO_MODULATION 1746 #define IDC_START_IBIT_LABEL 1746 #define IDC_GUARD_RX_LABEL 1747 #define IDC_TEST_TYPE_LABEL 1747 #define IDC_GUARD_RX_BUTTON 1748 #define IDC_IBIT_STATUS 1748 #define IDC_GUARD_FREQ_LABEL 1749 #define IDC_TEST_TYPE_STATUS 1749 #define IDC_COMBO_GUARD_FREQ 1750 #define IDC_WARNINGS_LABEL 1750 #define IDC_MARITINE_SHIP_SHORE_LABEL 1751 #define IDC_WARNINGS_STATUS 1751 #define IDC_SHIP_SHORE_BUTTON 1752 #define IDC_ERRORS_EXIST_LABEL 1752 #define IDC_MARITIME_INT_USA_LABEL 1753 #define IDC_ERRORS_EXIST_STATUS 1753 #define IDC_INT_USA_BUTTON 1754 #define IDC_SRUS_ERRORS_LABEL 1754 Help!

    H T 2 Replies Last reply
    0
    • A Andy202

      I was doing a lot of cut and paste on several dialogs, but then I look at the resource.h file, some defines have the same value. Are they any programs to check this file and correct the problems. See sample below:- #define IDC_POWER_LABEL 1742 #define IDC_MAIN_RX_SQUELCH_LABEL 1743 #define IDC_MODULATION_LABEL 1744 #define IDC_COMBO1 1745 #define IDC_COMBO_MODULATION 1746 #define IDC_START_IBIT_LABEL 1746 #define IDC_GUARD_RX_LABEL 1747 #define IDC_TEST_TYPE_LABEL 1747 #define IDC_GUARD_RX_BUTTON 1748 #define IDC_IBIT_STATUS 1748 #define IDC_GUARD_FREQ_LABEL 1749 #define IDC_TEST_TYPE_STATUS 1749 #define IDC_COMBO_GUARD_FREQ 1750 #define IDC_WARNINGS_LABEL 1750 #define IDC_MARITINE_SHIP_SHORE_LABEL 1751 #define IDC_WARNINGS_STATUS 1751 #define IDC_SHIP_SHORE_BUTTON 1752 #define IDC_ERRORS_EXIST_LABEL 1752 #define IDC_MARITIME_INT_USA_LABEL 1753 #define IDC_ERRORS_EXIST_STATUS 1753 #define IDC_INT_USA_BUTTON 1754 #define IDC_SRUS_ERRORS_LABEL 1754 Help!

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      I had one problem with same IDs like your code so my suggestion use of different values.:)


      WhiteSky


      D 1 Reply Last reply
      0
      • A Andy202

        I was doing a lot of cut and paste on several dialogs, but then I look at the resource.h file, some defines have the same value. Are they any programs to check this file and correct the problems. See sample below:- #define IDC_POWER_LABEL 1742 #define IDC_MAIN_RX_SQUELCH_LABEL 1743 #define IDC_MODULATION_LABEL 1744 #define IDC_COMBO1 1745 #define IDC_COMBO_MODULATION 1746 #define IDC_START_IBIT_LABEL 1746 #define IDC_GUARD_RX_LABEL 1747 #define IDC_TEST_TYPE_LABEL 1747 #define IDC_GUARD_RX_BUTTON 1748 #define IDC_IBIT_STATUS 1748 #define IDC_GUARD_FREQ_LABEL 1749 #define IDC_TEST_TYPE_STATUS 1749 #define IDC_COMBO_GUARD_FREQ 1750 #define IDC_WARNINGS_LABEL 1750 #define IDC_MARITINE_SHIP_SHORE_LABEL 1751 #define IDC_WARNINGS_STATUS 1751 #define IDC_SHIP_SHORE_BUTTON 1752 #define IDC_ERRORS_EXIST_LABEL 1752 #define IDC_MARITIME_INT_USA_LABEL 1753 #define IDC_ERRORS_EXIST_STATUS 1753 #define IDC_INT_USA_BUTTON 1754 #define IDC_SRUS_ERRORS_LABEL 1754 Help!

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        Andy202 wrote:

        some defines have the same value.

        it doesn't matter if the relative controls are on different dialogs...


        TOXCCT >>> GEII power

        [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

        G B 2 Replies Last reply
        0
        • H Hamid Taebi

          I had one problem with same IDs like your code so my suggestion use of different values.:)


          WhiteSky


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

          WhiteSky wrote:

          ...my suggestion use of different values.

          No kidding! He already wants unique numbers. His question was about a program to do that for him. :rolleyes:


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          M 1 Reply Last reply
          0
          • D David Crow

            WhiteSky wrote:

            ...my suggestion use of different values.

            No kidding! He already wants unique numbers. His question was about a program to do that for him. :rolleyes:


            "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

            "Judge not by the eye but by the heart." - Native American Proverb

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #5

            I think ResOrg ( found here on CP ) can do that.


            Maximilien Lincourt Your Head A Splode - Strong Bad

            D 1 Reply Last reply
            0
            • M Maximilien

              I think ResOrg ( found here on CP ) can do that.


              Maximilien Lincourt Your Head A Splode - Strong Bad

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

              Maximilien wrote:

              I think ResOrg...

              Yes, I'm already aware of it.


              "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

              "Judge not by the eye but by the heart." - Native American Proverb

              G 1 Reply Last reply
              0
              • T toxcct

                Andy202 wrote:

                some defines have the same value.

                it doesn't matter if the relative controls are on different dialogs...


                TOXCCT >>> GEII power

                [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

                G Offline
                G Offline
                Galatei
                wrote on last edited by
                #7

                That's correct, you may have exactly the same control IDs in different dialog boxes. The simplest example is: IDOK, IDCANCEL. Regards

                1 Reply Last reply
                0
                • D David Crow

                  Maximilien wrote:

                  I think ResOrg...

                  Yes, I'm already aware of it.


                  "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                  "Judge not by the eye but by the heart." - Native American Proverb

                  G Offline
                  G Offline
                  Grahamfff
                  wrote on last edited by
                  #8

                  Has this program been updated for VS 2005. I had problems with it om VS 2003, does most of the things wright but gets IDD for the Aboutbox and Menu wrong. Andy.

                  grahamfff

                  D 1 Reply Last reply
                  0
                  • G Grahamfff

                    Has this program been updated for VS 2005. I had problems with it om VS 2003, does most of the things wright but gets IDD for the Aboutbox and Menu wrong. Andy.

                    grahamfff

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

                    Grahamfff wrote:

                    Has this program been updated for VS 2005.

                    Wouldn't know. I don't use it.


                    "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                    "Judge not by the eye but by the heart." - Native American Proverb

                    1 Reply Last reply
                    0
                    • T toxcct

                      Andy202 wrote:

                      some defines have the same value.

                      it doesn't matter if the relative controls are on different dialogs...


                      TOXCCT >>> GEII power

                      [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

                      B Offline
                      B Offline
                      Blake Miller
                      wrote on last edited by
                      #10

                      Unless you want to map the control ID to a help file context using MakeHm or something similar, in which case you want ALL controls to have unique ID within the application - at least all of them that will have context-sensitive help. Maybe that is why he wants them all to be different.

                      Any sufficiently gross incompetence is nearly indistinguishable from malice.

                      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