|
| |||
| How do I get/set timezone? I'm trying the following code to get the current timezone LPTIME_ZONE_INFORMATION lpTimeZoneInformation; long error = 0; long result = GetTimeZoneInformation(lpTimeZoneInformation); error = GetLastError(); if (result == TIME_ZONE_ID_STANDARD) { if (lpTimeZoneInformation->StandardName) //convert WCHAR to char - It crashes here. } I got 1 as result and it crashes if I try to access lpTimeZoneInformation->StandardName Thanks |
| |||
| Re: How do I get/set timezone? Hello, I'd recommend you post your question in the microsoft.public.pocketpc.developer group as you will likely get an answer quicker there. Regards, Clinton Fitch, MVP-Mobile Devices Clinton Fitch (Dot) Com! http://www.clintonfitch.com On Fri, 3 Nov 2006 08:27:02 -0800, sfj <sfj@discussions.microsoft.com> wrote: > I'm trying the following code to get the current timezone > >LPTIME_ZONE_INFORMATION lpTimeZoneInformation; >long error = 0; > >long result = GetTimeZoneInformation(lpTimeZoneInformation); >error = GetLastError(); > >if (result == TIME_ZONE_ID_STANDARD) >{ >if (lpTimeZoneInformation->StandardName) >//convert WCHAR to char - It crashes here. >} > >I got 1 as result and it crashes if I try to access >lpTimeZoneInformation->StandardName > > >Thanks |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I can't find any timezone. | Justin | Windows Vista | 2 | 03-23-2008 05:20 AM |
| Timezone changes on Linux | ss-sandsideoaks | Linux | 30 | 05-06-2007 12:08 AM |
| Timezone settings | Eric Lindsay | Apple Macintosh Hardware | 3 | 02-06-2007 05:08 PM |
| How do I get/set timezone? | sfj | Smartphones | 2 | 01-05-2007 05:17 AM |
| Dymanic TimeZone | Daren Terry | Windows Vista | 0 | 01-02-2007 11:40 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |