OS 4.0 prevents you from accessing structure internals. See FrmGetObjectBounds
Matt At 05:17 PM 27/2/2002 -0600, you wrote: >Hi all, > >I have a problem on ControlType datatype in order to get bounds property of >ControlPtr object (if compiled with PalmOS 4.0 compiler). I don't have this >problem if I compile my code using PalmOS 3.50 compiler. Below is the code: > >RectangleType rect; >ControlPtr btn; >btn = (ControlPtr) GetObjectPtr(buttonName); >rect = btn->bounds; > >I get this error when I compile with PalmOS 4.0: > Illegal use of incomplete struct/union/class 'ControlType' on rect = >btn->bounds. > >Is there any syntax different btwn compiler 3.50 and 4.0? How do you fix >this? >Any help is very much appreciated. > >S Santoso > > > > > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
