x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

How do read system time using eVC3?

technogeist2k9 Page Icon Posted 2010-06-14 9:32 PM
#
Avatar image of technogeist2k9
Factorite (Elite)

Posts:
156
Location:
United Kingdom
Status:
Hi,
I was attempting to port some old project(s) that use <time.h>, eVC3 has no header or lib file. Where is it, or am I stuck using bloated MFC?

How do I access the system time? The eVT3 docs aren't helping.

technogeist. (Jornada 720)

 Top of the page
smb_gaiden Page Icon Posted 2010-06-15 5:53 AM
#
Avatar image of smb_gaiden
Factorite (Elite)

Posts:
212
Status:
I recommend to look for some sample source code out of the OpenNET Compact Framework. I believe they've done time.h implementation that is compatible with Windows CE.
 Top of the page
Alt Bass Page Icon Posted 2010-06-15 9:22 AM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
Quote
technogeist2k9 - 2010-06-15 12:32 AM

Hi,
I was attempting to port some old project(s) that use <time.h>, eVC3 has no header or lib file. Where is it, or am I stuck using bloated MFC?

How do I access the system time? The eVT3 docs aren't helping.

technogeist. (Jornada 720)



I will try to look for it in Platform Builder (at least time panel will use time functions).
 Top of the page
Alt Bass Page Icon Posted 2010-06-15 12:26 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
Check this one. It's from CE PB 4.2, but it should be applicable to 3.0.



Attachments
----------------
Attachments time.h (6KB - 0 downloads)
 Top of the page
technogeist2k9 Page Icon Posted 2010-06-15 4:46 PM
#
Avatar image of technogeist2k9
Factorite (Elite)

Posts:
156
Location:
United Kingdom
Status:
It's ok. I've got it working. Have to use the WinCE API. GetSystemTime() etc. The structure is back to front compared with the tm structure in Std-C

Have a look here if you're interested. (I picked up the link from a WinCE blogger on MSFT, but thanks go to smb_gaiden for the same info)

Edited by technogeist2k9 2010-06-15 4:59 PM
 Top of the page
technogeist2k9 Page Icon Posted 2010-06-15 4:47 PM
#
Avatar image of technogeist2k9
Factorite (Elite)

Posts:
156
Location:
United Kingdom
Status:
It's ok. I've got it working.

Have a look here if you're interested. (I picked up the link from a WinCE blogger on MSFT)
http://www.opennetcf.com/SharedSource/OpenTimeCE/tabid/247/Default.aspx
 Top of the page
technogeist2k9 Page Icon Posted 2010-06-15 4:54 PM
#
Avatar image of technogeist2k9
Factorite (Elite)

Posts:
156
Location:
United Kingdom
Status:
Thanks Alt Bass,

even with the correct header, it will refuse to link without the corresponding .lib file(s).

Technogeist.
 Top of the page
Jump to forum:
Seconds to generate: 0.171 - Cached queries : 46 - Executed queries : 28