hans at it.vu.nl
Wed Mar 10 07:04:43 CST 2004
On Tuesday 09 March 2004 17:27, you wrote:
> Thanks for the explanation. I am not good in WIN32, but I found
> GetSystemTimeAsFileTime which works fine on Wine and win2000.
> Now I use it instead of _ftime:
> FILETIME file_time;
> __int64 utc_millis_since_1970 = (*((__int64*)(&file_time))/10000)
> - 86400000LL * (369*365+89);
> Perhaps this can also be used for an _ftime implementation.
> I do not like the cast very much but MSDN proposes a union
> which is not better either.
It's tricky indeed because not all compilers support __int64
or the LL suffixes IIRC, so I have chosen to avoid those.
Implement _ftime with Win32 API's.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1471 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040310/fa847e7d/msvcrt_time_c.bin
More information about the wine-patches