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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IDC_BUTTON undeclared identifier !

IDC_BUTTON undeclared identifier !

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionloungelearning
5 Posts 4 Posters 1 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.
  • S Offline
    S Offline
    sunguy
    wrote on last edited by
    #1

    Hi I copied source files and its interfaces from one project to another , and even I've copied the Dialog resource.When I compile it gives errors error C2065: 'IDC_MASS_RANGE_PANEL' : undeclared identifier 'IDC_MASS_RANGE_MIN_BOXES' : undeclared identifier The source code is m_rangeLabelsPanel->Create("", WS_VISIBLE | WS_CHILD, rect, this, (IDC_MASS_RANGE_PANEL)); The only solution I do is to modify the resource.h file each time I get this error with some random numbers.Is it the correct way? Is there anything I must change ? any help is highly appreciated..

    C A 2 Replies Last reply
    0
    • S sunguy

      Hi I copied source files and its interfaces from one project to another , and even I've copied the Dialog resource.When I compile it gives errors error C2065: 'IDC_MASS_RANGE_PANEL' : undeclared identifier 'IDC_MASS_RANGE_MIN_BOXES' : undeclared identifier The source code is m_rangeLabelsPanel->Create("", WS_VISIBLE | WS_CHILD, rect, this, (IDC_MASS_RANGE_PANEL)); The only solution I do is to modify the resource.h file each time I get this error with some random numbers.Is it the correct way? Is there anything I must change ? any help is highly appreciated..

      C Offline
      C Offline
      cats8199
      wrote on last edited by
      #2

      Did you copy or cut and paste the needed entries from resource.h? Dave

      S 1 Reply Last reply
      0
      • C cats8199

        Did you copy or cut and paste the needed entries from resource.h? Dave

        S Offline
        S Offline
        sunguy
        wrote on last edited by
        #3

        I copy it but chnage the number as the number sometimes clashes with other..!

        T 1 Reply Last reply
        0
        • S sunguy

          Hi I copied source files and its interfaces from one project to another , and even I've copied the Dialog resource.When I compile it gives errors error C2065: 'IDC_MASS_RANGE_PANEL' : undeclared identifier 'IDC_MASS_RANGE_MIN_BOXES' : undeclared identifier The source code is m_rangeLabelsPanel->Create("", WS_VISIBLE | WS_CHILD, rect, this, (IDC_MASS_RANGE_PANEL)); The only solution I do is to modify the resource.h file each time I get this error with some random numbers.Is it the correct way? Is there anything I must change ? any help is highly appreciated..

          A Offline
          A Offline
          AHawk
          wrote on last edited by
          #4

          Did you #include "resource.h" in the source or header file?

          1 Reply Last reply
          0
          • S sunguy

            I copy it but chnage the number as the number sometimes clashes with other..!

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            sunguy wrote: I copy it but chnage the number as the number sometimes clashes with other.. Do u check our Identifier is defined in your header or cpp file or not?

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            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