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. identifier 'THIS'

identifier 'THIS'

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

    hi, I am trying to compile a vc6.0 project in vc8.0. I am getting the following error. error C2061: syntax error : identifier 'THIS' I tried to use #undef THIS and #define THIS. But it didnt work. Is it possible that old windows files are getting linked. In that case as well the definition of 'THIS' hasn't changed and its the same. Can anyone suggest a fix? regards, sk80.

    K 1 Reply Last reply
    0
    • S skumaran_19

      hi, I am trying to compile a vc6.0 project in vc8.0. I am getting the following error. error C2061: syntax error : identifier 'THIS' I tried to use #undef THIS and #define THIS. But it didnt work. Is it possible that old windows files are getting linked. In that case as well the definition of 'THIS' hasn't changed and its the same. Can anyone suggest a fix? regards, sk80.

      K Offline
      K Offline
      koothkeeper
      wrote on last edited by
      #2

      Shouldn't it be lower case (this)?

      S 1 Reply Last reply
      0
      • K koothkeeper

        Shouldn't it be lower case (this)?

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

        I wonder if there is a MACRO somewhere in your code that uses 'THIS' in place of 'this'? Search for all references to 'THIS' -- what do you get? Read more of what I have to say at http://directx9.blogspot.com/

        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