title: Pointer to method from another class
body: <p>I have MyFunc in one h file, and MyClass1 in another h. And want call some  methods from MyFunc when MyClass1 have not Null pointer to MyFunc methods.
  Code work for OnIncCall, but how I can point MyClass1.MyDo to MyFunc.MyDo ? </p>
  
  <pre><code>void OnIncCall()
  {
      std::cout &lt;&lt; "I'm happen " &lt;&lt; std::endl;
  }
  
  class MyFunc
  {
  public:
      void MyDo() 
          {
              std::cout &lt;&lt; "I'm happen " &lt;&lt; std::endl;
          };
  };
  
  class MyClass1
  {
  public:
      MyClass1();
      void (*MyDo)();
  };
  
  MyClass1::MyClass1()
  {
      MyDo = NULL;
  }
  int _tmain(int argc, _TCHAR* argv[])
  {
      MyClass1 a;
      MyFunc b;
      //a.MyDo = b.*MyDo;
      a.MyDo = OnIncCall;
      if (a.MyDo != Null){    
          a.MyDo();
      }
  }
  </code></pre>