Your callback will have to be a static function in the class. Other class functions have the implicit this pointer and I think that makes them not have the right type to be a callback...
Kevin -----Original Message----- From: Bill Heidler [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 5:40 AM To: Palm Developer Forum Subject: Fw: C++ class methods as callback functions A couple of weeks ago I tried to use an object class method in a call to TblSetLoadDataProcedure( ), and couldn't get it to work. I got a compile-time error to the effect that the function signature didn't match TableLoadDataFuncType, and the only difference was that the class method was qualified by the class name (sorry, I don't have the exact error message handy, but can construct an example if necessary). Has anyone else run into this, or know a way around it? I tried various kinds of casts, etc., to no avail. I do not consider myself a C++ language "expert", but definitely believe in using OO techniques as much as possible. Thanks, Bill Heidler -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments is privileged and confidential and is intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify Invivodata immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
