Xref: utzoo comp.lang.c++:5128 comp.windows.x:14419 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!sun-barr!decwrl!gnome5.pa.dec.com!haynes From: haynes@gnome5.pa.dec.com (Charles Haynes) Newsgroups: comp.lang.c++,comp.windows.x Subject: Re: using X11 with C++ callbacks Message-ID: <1948@bacchus.dec.com> Date: 20 Oct 89 00:22:16 GMT References: <640@sunquest.UUCP> Sender: news@decwrl.dec.com Reply-To: haynes@gnome5.pa.dec.com (Charles Haynes) Lines: 6 Use the "this" pointer as the client data in the X callback. Write a generic wrapper function that takes a class pointer, and a pointer to a method, and calls that method in that class. The method should have no other args. Use the wrapper as the callback and the class as the client data. -- Charles