John,

While I'm glad to see the SDK 4.0 update 1 flags these issues, I'm
not sure that it should completely break the compile.  Have you ever
seen javac (the Sun java compiler) complain about the use of
deprecated APIs?  Of course, breaking the compile may be the only
option in gcc, my ignorance of the compiler internals...

I have some code for getting an item pointer that can only work
after PalmOS 3.5 (TblGetItemPointer()).  However, my product supports
PalmOS 3.0 and later.  So, I wrote a glue function to test the ROM
level (sysFtrNumROMVersion) and do the right thing.  Of course, the
SDK 4.0u1 flags the structure reference in the pre 3.5 branch as
unacceptable.

As best I can tell, "TblGlue.h" does not provide glue for
TblGetItemPointer() and if I

// #define DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS

then any other "real" mistakes which are accessing struct internals
will not get caught.

Any hints would be greatly appreciated.  I'd sure like to be ready
for PalmOS 5.0 before it's arrival...

Brian





> Subject: Re: Dereferencing pointer to incomplete type in FingerMain
> From: John Marshall <[EMAIL PROTECTED]>
> Date: Fri, 3 May 2002 12:06:35 +0200
> X-Message-Number: 7
> 
> On Fri, May 03, 2002 at 01:40:23PM +0400, Alexandre Kazantsev wrote:
> > I am trying to make the prc for the Finger example (SDK4.0) [...]
> > and getting the "dereferencing pointer to incomplete type" error several
> > times. The following lines of the source code fail:
> > 
> >  fieldWasEditable  = fldP->attr.editable;
> >  fldP->attr.editable = true;
> [etc]
> 
> You are using the 4.0 SDK Update 1.  I suggest you read the "IMPORTANT
> INFORMATION REGARDING FUTURE OS COMPATIBILITY" in its readme file and
> the notes about (not) accessing the internals of various Palm OS data
> structures in the Palm OS documentation.
> 
>     John



-- 
Brian Blevins -- [EMAIL PROTECTED] -- http://www.apthand.com/
Mobile Consumer Intelligence: Home Buying for Digerati

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

Reply via email to