🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38365

C++ and callbacks

#38365
From: Paul Durbin
Date: Mon, 02 May 1994 17:14
12 lines
1221 bytes
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.
Technical Details
Message-ID: <pauld.767898877@sarge>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!sarge!sarge!pauld

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,ad5a39011a2d3d26,start
X-Google-Attributes: gid109fba,public
X-Google-Thread: 103734,ad5a39011a2d3d26,start
X-Google-Attributes: gid103734,public
X-Google-Thread: 10ba33,ad5a39011a2d3d26,start
X-Google-Attributes: gid10ba33,public
X-Google-ArrivalTime: 1994-05-02 12:36:17 PST
Newsgroups: comp.windows.x,comp.lang.c++,gnu.g++.help
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!sarge!sarge!pauld
From: pauld@verdix.com (Paul Durbin)
Subject: C++ and callbacks
Message-ID: <pauld.767898877@sarge>
Sender: news@verdix.com
Nntp-Posting-Host: sarge.hq.verdix.com
Organization: Rational Software Corp
Date: Mon, 2 May 1994 17:14:37 GMT
Lines: 12