> Hi, It is about fltk (the callback function) > I couldn't find what is wrong, I am so pressed (sorry) > could you please help?
Did you read the manual section I referenced, where it discusses callbacks? The problem is that you need to make the function referenced by the callback static, so it can not be a member function as such, they way you have it. You can make a static member function that redirects to a non-static member function of course, and this is what fluid does. Try generating a simple worked example with fluid and see how it directs all the callbacks via static members that then call the non-static members to do the actual work. That's is what you need to do too. It looks inefficient but is usually not that bad, as the compiler will generally inline a lot of that code, making it less of an overhead than you might otherwise think. Also, as a general point - please don't email me direct, always use the mailing lists. I have enough to do as it is and extra uninvited interruptions make it less likely that I will respond... SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

