Article View: comp.windows.x
Article #38367Re: C++ and callbacks
From: mhomer
Date: Mon, 02 May 1994 20:52
Date: Mon, 02 May 1994 20:52
19 lines
1605 bytes
1605 bytes
In article <pauld.767898877@sarge>, pauld@verdix.com (Paul Durbin) writes: > I attempt to use a member function as callback but all three arguments (to the > callback) are garbage. If I make it a friend then the arguments are correct, > but then I can't get to the class data, without reference thru an instance of > the class and I don't want the data to be static. > > So, what is causing this problem? Could I possibly use the *this pointer as > the client_data to the callback, then cast to the appropriate class? > > thanks in advance for all the wonderful help. > > tybm, > paul d. See the November 1992 "Cross Thoughts" column of Unix Review. (er, if memory serves, that's the correct issue) -- Mitch mhomer@desire.wright.edu
Technical Details
Message-ID:
<1994May2.165238.21797@desire.wright.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!purdue!lerc.nasa.gov!kira.cc.uakron.edu!malgudi.oar.net!mercury.wright.edu!desire.wright.edu!mhomerReferences:
<pauld.767898877@sarge>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,ad5a39011a2d3d26 X-Google-Attributes: gid103734,public X-Google-Thread: 109fba,ad5a39011a2d3d26 X-Google-Attributes: gid109fba,public X-Google-Thread: 10ba33,ad5a39011a2d3d26 X-Google-Attributes: gid10ba33,public X-Google-ArrivalTime: 1994-05-02 15:05:26 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!purdue!lerc.nasa.gov!kira.cc.uakron.edu!malgudi.oar.net!mercury.wright.edu!desire.wright.edu!mhomer From: mhomer@desire.wright.edu Newsgroups: comp.windows.x,comp.lang.c++,gnu.g++.help Subject: Re: C++ and callbacks Message-ID: <1994May2.165238.21797@desire.wright.edu> Date: 2 May 94 16:52:38 EDT References: <pauld.767898877@sarge> Organization: Wright State University Lines: 20