where s_systemtime:
global type s_systemtime from structure
integer ii_Year
integer ii_Month
integer ii_DayOfWeek
integer ii_Day
integer ii_Hour
integer ii_Minute
integer ii_Second
integer ii_Milliseconds
end type
( syntax from export)
s_systemtime works normal, API functions like getlocaltime, getsystemtime
return correct results.
But getTimeZoneInformation() returns garbage after first character array.
Can somebody help me?
Thanks
Michael.
The systemtime structure should be of LONGs, because a WORD in 32bit OS is 4
bytes, not 2.
HTH
--
Met vriendelijke groet,
- Eric Aling [TeamSybase], Cypres Informatisering bv, The Netherlands
Eric's Home & PB Site @ http://utopia.knoware.nl/users/cypr115
michael <mic...@aiks.com> wrote in message
news:#nx9Xmr0#GA....@forums.sybase.com...
>Hi,
>
>The systemtime structure should be of LONGs, because a WORD in 32bit OS is
4
>bytes, not 2.
>
>HTH
>--
>Met vriendelijke groet,
>
>- Eric Aling [TeamSybase], Cypres Informatisering bv, The Netherlands
> Eric's Home & PB Site @ http://utopia.knoware.nl/users/cypr115
Hi.
Thanks for replying.
I tried to replace int by long but situation became even worse -
GetSystemTime and GetLocalTime stoped working also.
But I've fixed this problem by changing char[32] by char[64]
(i guess., wchar type contains 2 bytes).
Michael
Yep, that's true. BTW, indeed a WORD is a 16bit integer. DWORD is 32bit.
Just looked it up so you already did that right. Glad you've got it working.
--
Met vriendelijke groet,
- Eric Aling [TeamSybase], Cypres Informatisering bv, The Netherlands
Eric's Home & PB Site @ http://utopia.knoware.nl/users/cypr115
michael <mic...@aiks.com> wrote in message
news:7de6I$40#GA....@forums.sybase.com...