I want to use SelectDay() and save the result into members of the DateType
structure.

The compiler's giving me an error that i'm trying to implicitly convert from
an 'unsigned short' to a 'short *'.  I don't quite understand what I'm doing
wrong.

<<<CODE>>>
typedef struct {
    ...
    DateType    Age;
    ...
} PatienType;
    ...
    ...
    ...
void foo(PatientType *pdtTempData) {

 SelectDay(selectDayByDay, pdtTempData->Age.month,
        pdtTempData->Age.day,
        pdtTempData->Age.year,
        "Select date of birth");
}
<<<END>>>

Here's the DateType structure as defined by the Palm OS Reference Manual.

<<<CODE>>>
typedef struct {
    UInt16    year : 7;
    UInt16    month : 4;
    UInt16    day : 5;
} DateType;
<<<END>>>

Thanks for your time.

--
Jimi Malcolm
Web Content Manager
inburst Internet Media
inburst.com
jimi.malcolm@inburst



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

Reply via email to