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. C2065 Compiler error.

C2065 Compiler error.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 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.
  • B Offline
    B Offline
    bin8922
    wrote on last edited by
    #1

    Hello, there, I got a C2065 compiler error. The error message is error C2065: 'RBN_CHEVRONPUSHED' : undeclared identifier But when I go to that line and right click on RBN_CHEVRONPUNSHED and then click on "Go to definition of RBN_CHEVRONPUSHED" I can actually go to the CommCtrl.h and see the definition. This is very strange. How could I solve the problem? Thanks a lot in advance Bin

    C 1 Reply Last reply
    0
    • B bin8922

      Hello, there, I got a C2065 compiler error. The error message is error C2065: 'RBN_CHEVRONPUSHED' : undeclared identifier But when I go to that line and right click on RBN_CHEVRONPUNSHED and then click on "Go to definition of RBN_CHEVRONPUSHED" I can actually go to the CommCtrl.h and see the definition. This is very strange. How could I solve the problem? Thanks a lot in advance Bin

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your compiler knows where the file is, but your code is not including the file, so it doesn't. Include the file, and try again. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      B 1 Reply Last reply
      0
      • C Christian Graus

        Your compiler knows where the file is, but your code is not including the file, so it doesn't. Include the file, and try again. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

        B Offline
        B Offline
        bin8922
        wrote on last edited by
        #3

        Thanks for your reply. I put the #include in the StdAfx.h file and also in that file with error. But I still got the same compiler error. I am so confused. Thanks again for your reply. Bin

        C R 2 Replies Last reply
        0
        • B bin8922

          Thanks for your reply. I put the #include in the StdAfx.h file and also in that file with error. But I still got the same compiler error. I am so confused. Thanks again for your reply. Bin

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Not a solution, but a step. Is the error in your own code ? If so, try copying the #define into the top of your .cpp file and see if it compiles. If so, then it cannot see that file, for whatever reason. If not, the problem is somewhere else, and the error message is just not very helpful. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

          I 1 Reply Last reply
          0
          • C Christian Graus

            Not a solution, but a step. Is the error in your own code ? If so, try copying the #define into the top of your .cpp file and see if it compiles. If so, then it cannot see that file, for whatever reason. If not, the problem is somewhere else, and the error message is just not very helpful. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

            I Offline
            I Offline
            Ionut L
            wrote on last edited by
            #5

            I haven't tried this so I'm not sure it'll work, but try to define the _WIN32_WINNT macro as 0x0400 or later in stdafx right at the begining, before any other lines.

            1 Reply Last reply
            0
            • B bin8922

              Thanks for your reply. I put the #include in the StdAfx.h file and also in that file with error. But I still got the same compiler error. I am so confused. Thanks again for your reply. Bin

              R Offline
              R Offline
              Robert A T Kaldy
              wrote on last edited by
              #6

              If you change something in stdafx.h you must recompile (manually) the file stdafx.cpp to update the precompiled header. Robert-Antonio "Love without sex is like a fish without antlers"

              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