From: Steve K [mailto:[EMAIL PROTECTED] > Is there something wrong with setting fldAttr to NULL before > calling FldGetAttributes? > FieldAttrType* fldAttr = NULL; > FldGetAttributes(fldP, fldAttr);
Yes, that's bad. You must pass it a valid pointer to an existing FieldAttrType object which you supply yourself: FieldAttrType fldAttr; FldGetAttributes (fldP, &fldAttr); Otherwise, how would your original version work? How would the attribute information be returned to your program? Is there any way for FldGetAttributes to modify your passed-in pointer to point to something the function itself might allocate? (Do these sound like questions from a programming teacher? :-) -slj- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/