Technology Questions

Go Back   Technology Questions > Hardware Questions > Electronics > Pocket PC General

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-15-2007, 10:52 AM
sfj
Newsgroup Contributor
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-15-2007, 10:52 AM
  #2 (permalink)  
Old 01-15-2007, 10:52 AM
Clinton Fitch, MVP-Mobile Devices
Newsgroup Contributor
 
Posts: n/a
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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?

All times are GMT -8. The time now is 04:13 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0