Hi,
Are you building application yourself?
In such case you need to create dictionary and add function NextEvent()
to LinkDef.h file.
Something like:
#pragma link C++ function NextEvent;
See discussion here for some more details.
Regards,
Sergey