Hi,

Hope I'm asking this in the right group.

I've an application running on a ppc which collects som input
data and save's this in a file.

On the pc an app is running which must be sync'd with the collected data.

When I connect the ppc ActiveSync detect the connection.

What I wanna do is that when the ppc is connected my app detects this
and copies the file with the collected data from the ppc. Deletes the
file on the ppc. And puts a new file on the ppc.

Could anyone point me to some information (example) on how to do this.


Thanks,

Gene.

Re: ActiveSync synchronization by sarathy

sarathy
Fri May 27 04:51:30 CDT 2005

you can use the HKEY_LOCAL_MACHINE -> Microsoft -> Windows CE Services
-> AutoStartOnConnect key.

Have your exe file linked to this key and write the code to delete
files in that exe.

It will automatically do the task when activesync connected

Sarathy


Re: ActiveSync synchronization by Jim

Jim
Fri May 27 07:20:03 CDT 2005


That app might need the desktop communication library at
http://www.opennetcf.org that wraps the RAPI (ha!) functions so you get
get files on and off the device, among other things.

Cheers,
Jim Cooper

__________________________________________

Jim Cooper jcooper@tabdee.ltd.uk
Tabdee Ltd http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
__________________________________________

Re: ActiveSync synchronization by Ola

Ola
Fri May 27 08:39:45 CDT 2005

Is it possible to start an app (i.e start SQL Ce replication) on the device
when connected?

--
Ola Ekelund
SoftConsult SWEDEN



Re: ActiveSync synchronization by Gene

Gene
Fri May 27 09:15:49 CDT 2005

Thanks guys for the help.

Found the RAPI library on opennetcf.org that has a nice example in C#
to perform the tasks I want.

Gene

Re: ActiveSync synchronization by Jim

Jim
Sat May 28 08:55:24 CDT 2005


> Is it possible to start an app (i.e start SQL Ce replication) on the device
> when connected?

Yes. In fact, the only way I could find to stop an app running was to
start another app that killed the first one and then closed itself.

Cheers,
Jim Cooper

__________________________________________

Jim Cooper jcooper@tabdee.ltd.uk
Tabdee Ltd http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
__________________________________________