Just to cover the bases, you are including the Day.h and SelDay.h files as
needed, right?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jimi
Malcolm
Sent: Wednesday, June 27, 2001 4:14 PM
To: Palm Developer Forum
Subject: I don't quite understand this


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/


-- 
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