>From the keyboard of Jacques Tremblay comes:-
>
># To subscribers of the xforms list from Jacques Tremblay <jackt@gel.ulaval.ca> :
>
> Hi,
Hi,
First a small confession. I miss-read the orignal post and thought the
question applied to C++.
>
> This works on systems that have longs the same size as pointers.
>This has been discussed in the list some times ago. Suppose the pointers
>are 64 bits and the long 32 bits, it will crash. I think the best
>place to keep the this pointer is in the u_vdata structure element of
>the object because its a pointer. This makes code work on any system.
>I made an example of using XForms and C++. You can look at it in the
>Contrib directory of the xforms ftp.
True, but its a technical issue. The point is that you don't need to
pass around data stuctures with C++, you can direct the callback to the
relevent class.
BTW. What sort of machines have 64bit pointers and am I ever likely to
encounter one!
-- IanIan Leonard eMail: ian@eonsw.demon.co.uk Phone Fax: +44 (0)1865 434757 Fax: +44 (0)1865 434758 19 Stapleton Road Headington, Oxford, OX3 7LX, UK
Please ignore spelling and punctuation - I did.
_________________________________________________ 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/