Re: XForms: C++ design wanted

Kaz Kylheku (kaz@cafe.net)
Sat, 14 Jun 1997 07:39:39 -0700 (PDT)

To subscribers of the xforms list from Kaz Kylheku <kaz@cafe.net> :

On Sat, 14 Jun 1997, Mark Edward Johnston wrote:

> What follows is an example of how to use member functions as callbacks
> (you have to make them static, so the "this" pointer isn't passed, and
> then you have to hang the "this" pointer of your C++ objects off the
> "u_vdata" member of each XForms object associated with the C++ object).
>
> Hope it helps.

Umm, what you are doing is passing a pointer to a C++ function to a subsystem
that expects a pointer to a C callback function. Doesn't that violate some
rule somewhere in the mighty C++ draft? ;)

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/