Actually SyncHHToHostWord and SyncHostToHHWord are identical (they either
swap the bytes or do not depending on the host). But as a matter of good
programming form the appropriate call should be used.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Tutty
Sent: Wednesday, October 31, 2001 23:18
To: Palm Developer Forum
Subject: Re: Date, date , date and date problem


"Vini P" <[EMAIL PROTECTED]> wrote
(snip)
> then I have stucture which I am passing to palm
> thorugh sync.
> XDB XData;
> XData.date.year = year - 1904;
> XData.date.month = month;
> XData.date.year = day;
>
> IF I use the SyncHHToHostWord then I get 0 values of
> day,month. It is possible that instead of takeing
>
This is where I get confused.  If this is the structure you're
passing to the Palm why are you using SyncHHToHostWord?
Shouldn't you be using SyncHostToHHWord?

Chris Tutty



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