Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mufflon

macrumors 6502
Sep 15, 2006
264
2
this is really one of the shortest threads I've seen on MR and I'm not even certain it's a question or a statement... ... if you were a little bit less vague we could actually help you, if you want...
 

lazydog

macrumors 6502a
Sep 3, 2005
709
6
Cramlington, UK
You can only access the non-static variables of a class if you have a pointer to a particular instance of the class.

Non-static functions of a class are always associated with a particular instance of a class and have the 'this' pointer initialised to point to the object in memory. Static functions on the other hand are not associated with any particular instance of the class and so do not have a 'this' pointer.

Sorry, that was a really bad explanation but I hope it helps a bit.

b e n
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.