From: jstacey AT plato DOT wadham DOT ox DOT ac DOT uk (J-P) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP doesn't understand pointer to member function Date: 19 May 2000 12:00:51 +0100 Organization: Wadham College Oxford Lines: 30 Message-ID: <8g36t3$rbi$1@plato.wadham.ox.ac.uk> References: <8g35td$2mt$15$1 AT news DOT t-online DOT com> NNTP-Posting-Host: plato.wadham.ox.ac.uk X-Trace: news.ox.ac.uk 958734052 788 163.1.164.74 (19 May 2000 11:00:52 GMT) X-Complaints-To: newsmaster AT ox DOT ac DOT uk NNTP-Posting-Date: 19 May 2000 11:00:52 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <8g35td$2mt$15$1 AT news DOT t-online DOT com>, Ortwin Wagner wrote: >Dear fellows! > >If I call a member function by means of a pointer like >... >class Mammal... >class Horse : public Mammal... ... then you should be asking this in comp.lang.c++ . >void (Mammal::*pFunc)() const=0; >pFunc=Mammal::Speak; You declaring these in the class? Are you just trying to overload the inherited Mammal functions? In which case, you don't put the Mammal:: namespace in there, as you're now in the Horse namespace. Also you can't set anything equal to anything within the class declaration (I think) so that's a mistake too. You need to do all of that in the class constructor Horse(). I'm not an expert, but I think the above is all hopelessly wrong. But you're definitely asking in the wrong newsgroup. This isn't a compiler-specific problem, I don't think. J-P -- The Realtors // wish clearly // tuxedo trouble // Staying Alive // the rotating dalmatian