Newsgroups: comp.sys.atari.st.tech Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!fauern!faui43.informatik.uni-erlangen.de!csbrod From: csbrod@immd4.informatik.uni-erlangen.de (Claus Brod) Subject: Re: rsrc_gaddr(), etc. Message-ID: <1991May6.111622.17413@informatik.uni-erlangen.de> Keywords: rsrc_gaddr, pointers to fields Organization: CSD., University of Erlangen, Germany References: <1991May6.023631.1912@ux1.cso.uiuc.edu> Date: Mon, 6 May 1991 11:16:22 GMT Lines: 22 mts10271@uxa.cso.uiuc.edu (Michael T Stepniczka) writes: > I have been trying to figure out how to get the address >of an object in a tree using rsrc_gaddr() without any success. >The problem is that I have 2 trees, and in each tree several objects. >I can't seem to get the address of object 1 from tree 0 and object 1 >from tree 1- I get the same address (obj. 1 from tree 0) for both >of them. Is there some way to have the rsrc_gaddr distinguish the If you have already got the address of the object tree, the address of any object n in the tree can be calculated as tree address + n*sizeof(OBJECT) sizeof(OBJECT) equals to 24. ---------------------------------------------------------------------- Claus Brod, Am Felsenkeller 2, Things. Take. Time. D-8772 Marktheidenfeld, West Germany (Piet Hein) csbrod@medusa.informatik.uni-erlangen.de Claus Brod@wue.maus.de ----------------------------------------------------------------------