Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!ll-xn!nike!ucbcad!ucbvax!UHUPVM1.BITNET!ACS19 From: ACS19@UHUPVM1.BITNET Newsgroups: net.micro.atari16 Subject: rsc info Message-ID: <8607020432.AA12058@ucbvax.Berkeley.EDU> Date: Wed, 2-Jul-86 00:04:15 EDT Article-I.D.: ucbvax.8607020432.AA12058 Posted: Wed Jul 2 00:04:15 1986 Date-Received: Thu, 3-Jul-86 01:11:50 EDT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: ACS19%UHUPVM1.BITNET@WISCVM.ARPA Organization: The ARPA Internet Lines: 30 Question: How can one get the address of te_ptext, te_ptmplt, etc. of a loaded resource? Using the rsrc_gaddr call seems to be paradoxical. It seems that to find the address, one must supply the index number in the resource file. Problems arise when one discovers that one cannot assign an index value to anything but a tree or an object in the RCS. I have tried using (char *)(LLGET(LLGET(OB_SPEC(OBJ)))) to get: 1) the pointer to the ob_spec (OB_SPEC(OBJ)) 2) the tedinfo pointed to by ob_spec LLGET(OB_SPEC(OBJ)) 3) the te_ptext pointer pointed by tedinfo LLGET(LLGET(OB_SPEC(OBJ))) 4) the string pointed to by te_ptext (char *)(LLGET(LLGET(OB_SPEC(OBJ))) It would seem to be a waste of memory to have to allocate an array for each string I wish to copy to. Why not use the space in the resource file? Also, if I choose to point my tedinfo with LLSET(OB_SPEC(OBJ)), this would require that I allocate many tedinfo structures, which is a BIGGER waste. What I desire is to take the persons input from a dialog editable field, and copy it to another editable field. All I have to do is find out the address of the te_ptext and I have it made. The rsrc_gaddr call seems cryptic in trying to get anything but a tree or object. If you can help, thanks. I know some hang-abouter from Megamax is out there, so if you can help.... PLEASE DO. Thanx, Michael Vederman p.s. If I used the C code of the resource, I would have no problem, but...