Setting TimeZone

P

paulnewton44

How can I programmatically set the TimeZone on a CE.NET device?

I have previously used the OpenNetCF library and this did the trick,
however we now have lots of devices out in the field, some OS v4.2 and
some v5.0, (and v6.0 is on the horizon)

We have just upgraded to Visual Studio 2005 and plan to upgrade all
devices to CF v2.0.

I wish to make this and future upgrades easier, hence the reason for
dropping OpenNetCF.

Can I do this without the use of ANY 3rd party libraries?

Thanks.

Paul Newton
 
P

Paul G. Tobey [eMVP]

Of course. You just have to replace the functionality provided by the
library with your own. In this case, by P/Invoking SetTimeZoneInformation()
and declaring a suitable managed code equivalent of the
TIME_ZONE_INFORMATION structure. I don't think that you've convinced me
that there's much of a reason to replace OpenNETCF, especially if you're
using it for anything more than this. There are hundreds and hundreds of
man-hours in the library...

Paul T.
 
G

Guest

And the OpenNETCF library still works with CF 2.0 and will still do this -
why exactly is removing it making upgrades easier? Seems it's already
making things more difficult for you.

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top