Event receiver problem....

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Bob Finnie
Posts: 49
Joined: Tue Jan 23, 2007 12:36 pm
Location: Bedford, UK

Event receiver problem....

Post by Bob Finnie »

Hi Folks,

I've just updated my Irrlicht version to 1.5 from 1.3 but I can't get a bit of code to compile with the new SDK and I'm not sure whats changed..

Heres my error:

error C2259: 'MyEventReceiver' : cannot instantiate abstract class
due to following members:
'bool irr::IEventReceiver::OnEvent(const virgo::SEvent &)' : is abstract


from this code:

Code: Select all

MyEventRecevier recevier;
Any Ideas?

Thanks in advance...
Bob
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

why is it virgo::SEvent? Anyway, you have to make your OnEvent method match the given signature: Make the parameter const&
Bob Finnie
Posts: 49
Joined: Tue Jan 23, 2007 12:36 pm
Location: Bedford, UK

Post by Bob Finnie »

yeah sorry hybrid for such a stupid question.
1) I didn't read the FAQ
2) virgo - cut and paste error.

Thanks for the speedy reply anyway

Bob
Post Reply