I'm trying to modify instance data via pointers, but BCC is complaining I'm
using invalid structure operations. What's wrong with this?
GenInstance *objp;
optr newobj, lastchild, firstchild, curobj;
/* Get the values for the optrs */
objp = ObjDerefGen(lastchild);
objp->GI_link = newobj;
objp = ObjDerefGen(newobj);
objp->GI_comp = firstchild;
objp = ObjDerefGen(curobj);
objp->GI_comp = NullOptr;
I'm trying to move objects around the UI tree. I know I could do it with a
lot of messages but this will be a lot faster way to move a branch. It's
complaining about the lines with the -> in them. I've done this stuff before
and it worked. Like in the second GenInteraction message I sent I did
something like this, although I changed different fields.
------------------------------------------------------------------------
| I've always been afraid to die, but I think I'm more afraid to live. |
| -Billy Corgan, Smashing Pumpkins, The Aeroplane Flys High |
------------------------------------------------------------------------
| Edward Di Geronimo Jr. edwdig@bergen.org |
------------------------------------------------------------------------