> From: Steve Mann
>
> >But when i use the offsetof method, it gives me an
> >error "Cant open <stddef.h>"
> >I have already included the header file in my program.
>
> If you're using the 3.5 SDK and include PalmOS.h, it should include
> everything you need. If that's the case and you're still getting the
> error, you might want to take a look at what you're passing to
> offsetof as parameters. They might be triggering the error somehow.
>
> Regards,
> Steve Mann
>
A tiny correction to what Steve said:
If you include PalmOS.h from the 3.5 SDK, it will include PalmTypes.h which
contains the definition for the macro
OffsetOf(type, member)
Note the spelling (and that's why I really hate case sensitivity!)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/