emit blitz event from C

BlitzMax Forums/BlitzMax Programming/emit blitz event from C

does anyone happen to know how to emit a blitz event from C

specifically in custom components windows message handler I want to be able to inform blitz that say a mousemove / down etc event has happened.

i'm using

bbSystemEmitEvent( BBEVENT_MOUSEMOVE,&bbNullObject,0,0,xPos,yPos,&bbNullObject );

to send an event, but I want to send the address of a c++ object as the event source how do I cast it to a BBObject?

or am I going wrong somewhere?

managed to solve it by storing a reference to an object of a dummy type in my C object and passing that.