At 20:54 2003-1-25 -0800, you wrote:
Thanks Sir (Ben Combee)
For your information.
By the way I am using 4.1 SDK but
LstGlueSetIncrementalSearch  function is still there.
Good... I didn't remember when this was added to the Palm OS glue library. If you're using the 4.0 SDK with update 1, you really should move on to the 5.0 SDK. Migration is very easy, and it will let you enhance your apps for the new devices.

One more thing I would like to know though I really
dont know much of this c/c++ But just for knowladge

when I saw "List.h"
in attr type search is defined as

UInt16 search   :1; // set if incremental search is
// enabled.

where in LstGlueSetIncrementalSearch  we are passing
Boolean value as to set search on/off.
then why UInt16  :1;  and why not Boolean ??
The prototype for the function is

void LstGlueSetIncrementalSearch (ListType *listP, Boolean incrementalSearch);

The reason the actual structure used by Palm OS 4.1 and earlier uses "UInt16 : 1" is because in C, bitfields must be based on an appropriate integral type, and since the whole bitfield is 16 bits wide, all of its members are based on UInt16.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com

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

Reply via email to