--- Richard Bell wrote:
> I'm using SDK 4.0 and made use of the call LstGetTopItem 
> so I can store the top item of a list.  The call works fine 
> if I'm using an OS 4.0 or higher device but fails on an OS 
> 3.5 device.  I attempted to create a function that would 
> detect the version and use the older method but it will not
> compile.  I recieve the error:
> Error: illegal use of incomplete struct/union/class 'ListType'
> ...
>  #undef DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS
> ...
>  #define DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS

The problem you are having is due to the fact that these defines affect
the behavior of the Palm headers -- they aren't compiler directives. 
So, you have to move your code to a separate module (file) and turn on
or off access to internals before and after you #include that file. 
See John Marshall's explanation at:

http://www.escribe.com/computing/pcpqa/m54851.html


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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

Reply via email to