From: "L�fving, Christer" <[EMAIL PROTECTED]>
> static void calcDate(int y, int m, int d, int a)
> {
> DateType theDate;
> DatePtr  dp;
> dp = &theDate;
> dp->year = y;
> dp->month = m;
> dp->day = d;
> dp = &theDate;
> DateAdjust(dp, a);
> }

Did you note that DateType.year is the number of years since 1904?
Also, DateAdjust expects a Long for its second parameter, though that
shouldn't cause a problem.
Also, the second assignment to dp (= &theDate) is unnecessary, though that
shouldn't cause a problem.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to