I use codewarrior7 and palmsdk5,and develop for zire71.
Please see the following code:

ScrollBarPtr   barP;
barP=(ScrollBarPtr)GetObjectPtr(DebugFormScrollBar);
barP->value=barP->value-10;

After I compile the project,please see the following message:
Error   : illegal use of incomplete struct/union/class 'ScrollBarType'
DebugForm.c line 184                  barP->value=barP->value-10;

I go to ScrollBar.h on Palmos5.0 sdk folder,and find its define:
typedef struct ScrollBarType
#ifdef ALLOW_ACCESS_TO_INTERNALS_OF_SCROLLBARS // These fields will not be
available in the next OS release!
{
 RectangleType  bounds;
 UInt16    id;
 ScrollBarAttrType attr;
 Int16     value;
 Int16     minValue;
 Int16     maxValue;
 Int16     pageSize;
 Int16     penPosInCar;
 Int16     savePos;
}
#endif
ScrollBarType;



So I add "#define ALLOW_ACCESS_TO_INTERNALS_OF_SCROLLBARS" in global.h(in my
project),but I get the same error message.
please help me,and thanks.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to