I ended up doing something like you suggest. I couldn't get Ben's suggestion(s) to work, then I noticed that my .cpp files weren't even including the PalmOS.h -- so I've probably got something pathological going on.
My issue is that this code was developed on the Macintosh, while I'm developing under Windows. I need to get the code to a place where I can compile and fix bugs pending a complete re-write. ------------------------------------------------------------------------ Free software - Baxter Codeworks www.baxcode.com ------------------------------------------------------------------------- "Logan Shaw" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Or just copy the struct definition into your own header and rename > it FormBitmapTag_BeforeOS32. Then cast the pointer to your struct > and change the flag. Normally I don't suggest copying the struct > instead of including code, but since the whole point here is to be > backwards-compatible with an old thing where the struct format is > fixed anyway, it seems like that wouldn't be too evil. > > For added protection, since C supports local typedefs within > functions, hide the typedef for this struct in a wrapper function > (say, FormHideObjectBugWorkaround()) so that you're not tempted > (or even able) to use that type elsewhere. > > - Logan > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/