C1397: Kind of member and kind of pointer to member are not compatible

[ERROR]

Description

A pointer to member can not point to a function member and a pointer to function member can not point a member.

Example
  class A{

  
  public:

  
    int b;

  
    int c;

  
    void fct(){}

  
    void fct2(){}

  
  };

  
  void main(void){

  
    int A::*pmi = &A::b;

  
    void (A::* pmf)() = &A::fct;

  
    pmi=&A::fct2;

  
    pmf=&A::c;

  
  }

  
Tips
  class A{

  
  public:

  
    int b;

  
    int c;

  
    void fct(){}

  
    void fct2(){}

  
  };

  
  void main(void){

  
    int A::*pmi = &A::b;

  
    void (A::* pmf)() = &A::fct;

  
    pmf=&A::fct2;

  
    pmi=&A::c;

  
  }