Skip to main content

Past Blast

Featured Products

Windows Mobile Developer Controls
Windows Mobile Developer Controls
Stay in touch using the DEVBUSS RSS feeds.
 

News

Windows Mobile Developer Controls
Windows Mobile Developer Controls

Initiating ActiveSync from your Pocket PC using eVB

Written by Derek Mitchell  [author's bio]  [read 36797 times]
Edited by Derek

Download the code

Page 1 

I have had a couple of emails from folks for this kind of functionality so the following email form Jaco was well timed. I wasn't able to run this sample - I seldom use Pocket Access nowadays - preferring SS CE and I have some kind of problem with my ActiveSync. See the "Problem" section below for a description of the ActiveSync error I'm getting - I'm sure someone can shed some light on it.

Download the sample code.

What is this? [From Jaco van Eeden]

This little app calls the Active Sync from the Pocket PC. It requires a few API calls.

Please save the .mdb file on the desktop, then copy it over to the PPC and save it in the "\My Documents" directory. Also set it up in Active Sync to Syncronize the 2 files.

Brief Description [From Jaco van Eeden]

  • It is a single form app that has 8 buttons. The 4 bottom buttons are general database moving buttons.
  • The button "Clear", clears the text fields.
  • the button "Add to Local", saves the newly typed information to the database on the PPC.
  • The button "Sync To Desktop", calls the Active Sync Function and then the user must simply push the "Sync" button to have the info on the Desktop. (Hopefully)

As an aside - problem [note from Derek]

As mentioned above I was unable to run this code for reasons I presume are related to my ActiveSync setup. I cannot copy the mdb file to my Pocket PC using ActiveSync - I get the following error when I try to do the copy to the My Documents folder using the ActiveSync Explorer. I'm loathe to reinstall since I have not had any other problems.

Enabling the Pocket Access sync option results in the following "Attention required" error:

Please drop me an email if you have the solution and I'll post it here.