Change the Timezone from desktop

Last post 03-11-2008 8:25 by Neil. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-05-2008 4:42

    Change the Timezone from desktop

    Hi,

    I'm develop an application that will be run in many regions in the world. Then I need a perfect timezone settings.

    How can I setting the handheld timezone, and synchronize the clock, from my application on the desktop?

    Thanks,

    Filed under:
  • 03-07-2008 4:01 In reply to

    • Neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,152

    Re: Change the Timezone from desktop

    There is functionality in the Smart Device Framework that will allow you to change the timezone programmatically on the device. Unfortunately, there's nothing built directly into RAPI that will allow you to do the same remotely,  but fear not as you still have a couple of options:

    1. Write a RAPI Extension library.

    If you're comfortable with native code, you can create a set of RAPI Extension methods that you can call via RAPI::Invoke().

    2. The Client/Server Way.

    Create an app that will open a socket and listen on a specific port on the device. When the device is connected via ActiveSync/WMDC, you can connect to the open socket from the desktop and send commands to the device. Define a simple protocol that will allow you to adjust the timezone and date/time settings on the device. You can use RAPI to deploy, launch and terminate the app on the device.


  • 03-07-2008 15:47 In reply to

    Re: Change the Timezone from desktop

    Thank you Neil for your reply.

    But I'm little confused, because I don't understood his reply clearly.

    What did you mean by native code? The device (handheld) native code or the desktop native code? Do you refers to some program language, or something else?

    Do you have any example of how can I do this?
     
    One more time, Thank you so much.
     
    MarcCama
  • 03-11-2008 8:25 In reply to

    • Neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,152

    Re: Change the Timezone from desktop

    My use of native code in this instance refers to C and C++. RAPI Extension Methods must be written in a non-.NET language, such as C or C++, so VB and C# are totally out of the question.

    An example of a RAPI Extension Method can be found on my blog. Also, there is a good example in the book, Pocket PC Network Programming


Page 1 of 1 (4 items)