Thread: What's this?

  1. #1
    Aspiring "Software Guy"
    Join Date
    Aug 2005
    Posts
    46

    What's this?

    Someone please tell me the difference between this.something and this->something

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    this.something is an error and this->something is not. this is a pointer so if you want to use the dot operator, you have to dereference the pointer: (*this).something.

Popular pages Recent additions subscribe to a feed