Click here to get back home

time

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
time Hinkango 09-15-2005
|--> Re: time Andrey Yatsyk [...09-15-2005
Get Chitika Premium
Posted by Hinkango on September 15, 2005, 12:00 am
Please log in for more thread options
Hi

Is there any way to convert _int64 to FILETIME. I can convert FileTime to
_int64. Can reverse is also possible

thnx in advance



Posted by Andrey Yatsyk [eMVP] on September 15, 2005, 11:49 am
Please log in for more thread options
It is possible to convert __int64 to FILETIME same way as FILETIME to
__int64. When converting from FILETIME don't forget about align. __int64
should have 8 bytes align but FILETIME struct has 4 butes align.
--
Andrey

> Hi
>
> Is there any way to convert _int64 to FILETIME. I can convert FileTime to
> _int64. Can reverse is also possible
>
> thnx in advance
>




Posted by Riki on September 15, 2005, 9:06 pm
Please log in for more thread options
Hinkango wrote:
> Hi
>
> Is there any way to convert _int64 to FILETIME. I can convert FileTime to
> _int64. Can reverse is also possible

//to copy something from my code:

FILETIME currentTime;
SYSTEMTIME st;
GetSystemTime(&st);
SystemTimeToFileTime(&st, &currentTime);

ULARGE_INTEGER time;
time.LowPart = currentTime.dwLowDateTime;
time.HighPart = currentTime.dwHighDateTime;

time.QuadPart += whatever;

//and the reverse:

currentTime.dwLowDateTime = time.LowPart;
currentTime.dwHighDateTime = time.HighPart;

riki

I have an inferiority complex. But it's not a very good one.
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com


Similar ThreadsPosted
Network Time December 8, 2005, 11:29 pm
ActiveSync time May 10, 2006, 3:13 am
Application does not start for the second time December 1, 2005, 5:02 pm
What's the best way to solicit a Time value from the user? December 8, 2005, 9:41 pm
set date and time on Pocket PC February 3, 2006, 3:29 pm
Great time in France June 7, 2006, 10:31 am
Set Time Zone Question May 21, 2007, 5:51 pm
Last modified time of a contact June 13, 2008, 4:12 pm
How to reduce make image time? August 3, 2005, 7:28 pm
MSDN vs. eVC4 wizard, who's right this time? January 23, 2006, 12:22 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap