Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!ncar!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: MacApp and DAs (was: Re: Local/AppleTalk Connectivity in MacApp) Message-ID: <34332.278959EE@stjhmc.fidonet.org> Date: 6 Jan 91 17:15:45 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 26 lanett mark writes in a message to All LM> The point here is that C++ objects dynamically allocate memory, LM> which makes them unsuitable for this kind of program (I'm not LM> sure about Object Pascal). Also, since they pass the hidden this/self LM> pointer, you cannot pass a member function to the toolbox--they LM> have that extra parameter. You CAN pass a member function to the Toolbox, albeit indirectly... However you create "globals" for your DA, simply create a "gFilterFuncPtr" that is accessed by your filter function, thusly: void MyFilterFunction(void); { gFilterFuncPtr->Filter(); { whatever the syntax is for C++ (I forget) } } Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org