Message-ID: <3536C543.70D1EF9A@ms1.accmail.com.tw> Date: Fri, 17 Apr 1998 10:58:13 +0800 From: VAMPYR MIME-Version: 1.0 To: DJGPP Mailing List Subject: An OOP question - pointer to member function Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit Precedence: bulk ================================================== class BASE { public: void (BASE::*member_func_ptr)(void); }; class HERO : public BASE { public: void action(void); }; void main() { class HERO Vampyr; Vampyr.member_func_ptr = &Vampyr::action; } ============================================== I put a member function pointer to a pointer variable, but it appears errors!