Re: static functions

From: Julián Albo (JULIANALBO_at_terra.es)
Date: 02/24/04


Date: Tue, 24 Feb 2004 21:07:44 +0100

jeffc escribió:

> I just thought your answer was going to be confusing to the OP. He seemed
> to understand the basic idea that a static function is not automatically
> associated with an instance of a class like a member function is.

I think the contrary. I have seen people seeing a static function using
a private member of an object of his class and saying they have readed
that the static have no access to the non static members.

Regards.



Relevant Pages

  • Re: Methods and Threading
    ... as GPIBDevice1, 2, and the a static text member in the form (all of ... Therefore, using a static member ... That problem is easy to solve: Pass your class 'this' pointer as the thread parameter. ... The static function can then use the pointer to call a nonstatic function. ...
    (microsoft.public.vc.mfc)
  • Re: about static variable
    ... Error 3 fatal error LNK1120: ... it cannot access member variables of your class. ... One solution is to make _userName static as well (it will then be shared by all class instances), the other is not to make testa static function. ...
    (microsoft.public.platformsdk.security)