Hey all That was exactly what my problem was i was missing 2 functions that i needed to declare in my class what a rookie mistake! Ah well lesson learned its working perfectly now Thanks again all G
--- In [email protected], Jim Smith <jmclauri...@...> wrote: > > I can't tell how the other classes are implemented, but it appears that you > are not defining a pure virtual function that was declared in one of your > base classes. > > > I hope this helps > > > --- On Tue, 3/31/09, glogic20 <glo...@...> wrote: > > From: glogic20 <glo...@...> > Subject: [c-prog] Abstract class > To: [email protected] > Date: Tuesday, March 31, 2009, 2:04 PM > > > > > > > > > > > > > Hi all > > I just have a question on abstract classes. I have created a class using > multiple inheritance > > class ExitListenerAA : public FrameListener, public OIS::MouseListener, > public OIS::KeyListener > > { > > public: > > ExitListenerAA( OIS::Keyboard *keyboard): mKeyboard(keyboard) > > > > //code > > } > > In my main code i am creating as follows > > > > ExitListenerAA *mListener; > > > > mListener = new ExitListenerAA( mKeyboard) ; > > > > On this line i get an error > > Error 1 error C2259: 'ExitListenerAA' : cannot instantiate abstract > class > > > > Im just abit confused on how this error comes about. Any help would be great > cheers > > G > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [Non-text portions of this message have been removed] >
