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. Menu IDs converting to Number (VS 2003) ?!?

Menu IDs converting to Number (VS 2003) ?!?

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studioquestioncsharphelp
7 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.
  • W Offline
    W Offline
    Warren Stevens
    wrote on last edited by
    #1

    I'm using Visual Studio 2003 for an MFC project, and every once and a while (more frequently lately) some of my menu IDs convert from the ID representation (e.g. "ID_FILE_HELLO_WORLD" to the number (e.g. "20412"). Has anyone else seen this bug, and if so, how can I avoid it? It's driving me nuts! :mad: Warren (sorry, I also posted this in the C++/CLI board by accident)

    R L 2 Replies Last reply
    0
    • W Warren Stevens

      I'm using Visual Studio 2003 for an MFC project, and every once and a while (more frequently lately) some of my menu IDs convert from the ID representation (e.g. "ID_FILE_HELLO_WORLD" to the number (e.g. "20412"). Has anyone else seen this bug, and if so, how can I avoid it? It's driving me nuts! :mad: Warren (sorry, I also posted this in the C++/CLI board by accident)

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      Have you checked your resource.h file to check if the resource ID's #defines are still there? I've never come across this problem...

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      W 1 Reply Last reply
      0
      • W Warren Stevens

        I'm using Visual Studio 2003 for an MFC project, and every once and a while (more frequently lately) some of my menu IDs convert from the ID representation (e.g. "ID_FILE_HELLO_WORLD" to the number (e.g. "20412"). Has anyone else seen this bug, and if so, how can I avoid it? It's driving me nuts! :mad: Warren (sorry, I also posted this in the C++/CLI board by accident)

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

        This is a well known VS 2003 bug. Annoying huh? It appears to have been fixed in VS 2005.

        W 1 Reply Last reply
        0
        • R Ryan Binns

          Have you checked your resource.h file to check if the resource ID's #defines are still there? I've never come across this problem...

          Ryan

          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

          W Offline
          W Offline
          Warren Stevens
          wrote on last edited by
          #4

          Yes, they are okay (and it still compiles fine), it's just when you go into the menu editor all of the ID_... entries are converted to their numbers. It's VERY frustrating! Count yourself lucky if you don't experience this... Warren

          1 Reply Last reply
          0
          • L Lost User

            This is a well known VS 2003 bug. Annoying huh? It appears to have been fixed in VS 2005.

            W Offline
            W Offline
            Warren Stevens
            wrote on last edited by
            #5

            Yes it's REALLY annoying. It started out as just a few of my menu items, and now it's "spreading" to quite a few of them! (this is the sort of thing that makes me jealous of those open-source projects - I honestly would spend the time to fix this myself, it would probably be less work than continually repairing my menus) Is there no work-around? (other than VS 2005) :sigh: Warren

            L 1 Reply Last reply
            0
            • W Warren Stevens

              Yes it's REALLY annoying. It started out as just a few of my menu items, and now it's "spreading" to quite a few of them! (this is the sort of thing that makes me jealous of those open-source projects - I honestly would spend the time to fix this myself, it would probably be less work than continually repairing my menus) Is there no work-around? (other than VS 2005) :sigh: Warren

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

              I don't know of any workarounds unfortunately. :(

              W 1 Reply Last reply
              0
              • L Lost User

                I don't know of any workarounds unfortunately. :(

                W Offline
                W Offline
                Warren Stevens
                wrote on last edited by
                #7

                I found this submitted as bug ID: FDBK17799 at Microsoft. The final (and not so helpful comment) was: ============================ Resolved as Won't Fix by Microsoft on 2005-07-27 at 12:31:15 Thank you for reporting this issue. We've been reproduced the bug for Resource IDs >= 32768. Unless you are using that many IDs we suggest to use Resource IDs < 32768. Sorry for the inconvinience. =========================== (which conflicts with the ID-range advice from: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/\_mfcnotes\_tn020.asp but maybe for the time being, I will change my IDs to this lower range, and take my chances down there :wtf: :wtf: :wtf: Warren

                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