Original Post
Hi! My current project uses a very simple custom-made GUI system where each GUI object holds a function pointer to a callback function that is called whenever an event occurs (eg. a button is hovered, a list box item is selected, etc). The problem I'm facing right now is that I'd like that callback function to be a method of my CGameState class or one of its descendants but, after reading a few articles (including the parashift C++ faq) I think that this cannot be done in C++ via function pointers. Do you know any other method to achieve this? Thanks in advance for your answers, --Nacho