Sync Pda time with desktop

Posted on 2006-06-01
Last Modified: 2008-01-09
I need a way to sync the time on a pda with the time on the desktop that it is connected to. I did some research and came across an example that showed how to set the time from a program that was running on the pda. So i need a way to set the time from the desktop or a way to start a process on a connected pda from the desktop. Any Ideas?
Question by:rkneal
    LVL 3

    Expert Comment

    If it's a Windows Mobile PDA, you can call CeRapiInvoke to load a DLL on the device and execute a function in it. This can also pass data to the function (such as the time from the desktop).

    You _might_ be able to call CeRapiInvoke specifying "coredll.exe" as the module to load and "SetSystemTime" as the function to call. This would allow you to set the time on the PDA without writing any code for the device.


    Author Comment

    Ive been unsing RAPI but i'm not sure i know how to do what you are saying. Got an example?
    LVL 3

    Accepted Solution

    Had a closer look at it, I think you will have to put some code in a DLL on the device that receives the call and sets the time.

    Have a look at:

    \Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\CeInvoke


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now