Sign in to follow this  
chaoslion

SetMessageCallback broken?

Recommended Posts

i think the setmessagecallback method is broken for using class methods.
engine->SetMessageCallback(asMETHOD(maincls,ascb), pointer2maincls, asCALL_THISCALL)
with method
void maincls::ascb(const asSMessageInfo *msg) {..}
im getting no feedback from this callback, if i there´s an error in my script. but setting a non class function as callback does seem to work.. [Edited by - chaoslion on January 19, 2009 1:02:24 PM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this