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. Please, help!: Compilation issues on x64.

Please, help!: Compilation issues on x64.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestioncsharpvisual-studioworkspace
4 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
    bouli
    wrote on last edited by
    #1

    Hello gurus, I have some compilation issues when using the following calls in an x64 environment in Visual Studio 2005: - SetWindowLong: error C2065: 'GWL_WNDPROC' : undeclared identifier - GetWindowLong: error C2065: 'GWL_HINSTANCE' : undeclared identifier - SetClassLong: error C2065: 'GCL_HBRBACKGROUND' : undeclared identifier When digging in WinUser.h in the platform sdk installed from "en_platformsdk_windowsR2_march2006.iso" I can see the following lines: ... /* * Window field offsets for GetWindowLong() */ #define GWL_WNDPROC (-4) #define GWL_HINSTANCE (-6) #define GWL_HWNDPARENT (-8) #define GWL_STYLE (-16) #define GWL_EXSTYLE (-20) #define GWL_USERDATA (-21) #define GWL_ID (-12) #ifdef _WIN64 #undef GWL_WNDPROC #undef GWL_HINSTANCE #undef GWL_HWNDPARENT #undef GWL_USERDATA #endif /* _WIN64 */ ... It seems that when compiling for x64 platforms, the constants are undefined. So I logically get the compilation issue "undeclared identifier". Does anybody already have had this issues? If so, how can I solve these issues? May day!! Best regards. Fred.

    There is no spoon.

    P 1 Reply Last reply
    0
    • B bouli

      Hello gurus, I have some compilation issues when using the following calls in an x64 environment in Visual Studio 2005: - SetWindowLong: error C2065: 'GWL_WNDPROC' : undeclared identifier - GetWindowLong: error C2065: 'GWL_HINSTANCE' : undeclared identifier - SetClassLong: error C2065: 'GCL_HBRBACKGROUND' : undeclared identifier When digging in WinUser.h in the platform sdk installed from "en_platformsdk_windowsR2_march2006.iso" I can see the following lines: ... /* * Window field offsets for GetWindowLong() */ #define GWL_WNDPROC (-4) #define GWL_HINSTANCE (-6) #define GWL_HWNDPARENT (-8) #define GWL_STYLE (-16) #define GWL_EXSTYLE (-20) #define GWL_USERDATA (-21) #define GWL_ID (-12) #ifdef _WIN64 #undef GWL_WNDPROC #undef GWL_HINSTANCE #undef GWL_HWNDPARENT #undef GWL_USERDATA #endif /* _WIN64 */ ... It seems that when compiling for x64 platforms, the constants are undefined. So I logically get the compilation issue "undeclared identifier". Does anybody already have had this issues? If so, how can I solve these issues? May day!! Best regards. Fred.

      There is no spoon.

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      32-bit const - 64-bit const GWL_WNDPROC - GWLP_WNDPROC GWL_HINSTANCE - GWLP_HINSTANCE GCL_HBRBACKGROUND - GCLP_HBRBACKGROUND Please refer here[^] for more information. Regards, Paresh.

      G G 2 Replies Last reply
      0
      • P Paresh Chitte

        32-bit const - 64-bit const GWL_WNDPROC - GWLP_WNDPROC GWL_HINSTANCE - GWLP_HINSTANCE GCL_HBRBACKGROUND - GCLP_HBRBACKGROUND Please refer here[^] for more information. Regards, Paresh.

        G Offline
        G Offline
        GoldInBeijing
        wrote on last edited by
        #3

        Thank you !

        1 Reply Last reply
        0
        • P Paresh Chitte

          32-bit const - 64-bit const GWL_WNDPROC - GWLP_WNDPROC GWL_HINSTANCE - GWLP_HINSTANCE GCL_HBRBACKGROUND - GCLP_HBRBACKGROUND Please refer here[^] for more information. Regards, Paresh.

          G Offline
          G Offline
          grhm smith
          wrote on last edited by
          #4

          Saved my sanity... thanks!

          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