Skip to main content
gamedev.net
🔒 Locked

Callbacks in Classes

Started by dachande 1 reply 100+ views
Original Post
dachande
dachande
Hey, I am looking for a way to put callbacks in to classes - enless the callbacks are in the global space, I always get errors back. I would like to put a window message handler, and a direct play message in to classes, but on both account I receive errors - Is there a ''proper'' way to do this? Thank you for your time, Dachande
Solo
Solo
I believe that are many other resources on this site covering message handling with classes. You should try searching for them.

However, the short answer is: Don''t forget about the ''this'' pointer.
// Ryan
dachande
dachande
Sorry, I forgot to mention that the search facilities were not working at the time of that post. I have now however, found what I am looking for.

Dachande

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.