Re: ActiveSync

From: Glyn Meek (gjmeek_at_earthlink.net)
Date: 11/09/04


Date: Tue, 09 Nov 2004 22:04:24 GMT

Thanks Chris...this is the first time I have used anything from the
OpenNETCF and I am IMPRESSED...my thanks to those souls who put this code
out there!!!!

The routines work perfectly, but I have to admit that the documentation
leaves something to be desired wrt examples. Still, I suppose if you are
using this stuff, it is assumed you have at least some clue as to what you
are doing.

I can get everything I need but one last question.

I am trying to implement a routine to handle the RAPIDisconnected event so I
can stop my 'synching' routine if the user disconnects the Pocket Pc during
the processing. I am struggling as to how to define the routine that traps
the RAPIDisconnected event.

Do I need to do an 'addhandler' or is there some way for me to do something
like

Private Sub DeviceDisconnected() Handles myRAPI.RAPIDisconnected

end Sub

Glyn

"Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> wrote in message
news:uNqYn0mxEHA.2752@TK2MSFTNGP11.phx.gbl...
> If you've got the DLL, simply adding a reference and an "Imports"
> statement should be all you need. You can also add the entire source
> project to your solution and reference it internally.
>
> --
> <ctacke/>
> www.OpenNETCF.org
> Your CF searches start and end here
>
>
> "Glyn Meek" <gjmeek@earthlink.net> wrote in message
> news:15Zjd.9348$O11.5470@newsread3.news.pas.earthlink.net...
>> Peter...PERFECT...I have downloaded the OpenNETCF Communications library,
>> and it appears to have ALL the methods I need...however, since this is
>> the first time I have used OpenNETCF code I am struggling a little to
>> integrate it into my application and call the methods.
>>
>> I have added the .dll to my reference list and inserted
>> Imports OpenNETCF.Desktop.Communication
>>
>> at the beginning of my routine. What else do I need to do so I can
>> actually access the methods in my code?
>>
>> Regards
>>
>> Glyn
>>
>>
>>
>> "Peter Foot [MVP]" <feedback@no-spam.inthehand.com> wrote in message
>> news:%23Rc8ybexEHA.3416@TK2MSFTNGP09.phx.gbl...
>>>A really simple way would be to write a small desktop executable using
>>>RAPI to transfer files, you can do this from .NET code using OpenNETCF's
>>>Communications library -
>>> http://www.opennetcf.org/PermaLink.aspx?guid=d7b7cbef-4ab6-477b-924c-0498a523beaf
>>>
>>> You can launch your desktop app when ActiveSync connects using the
>>> registry keys at:-
>>> a.. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE
>>> Services\AutoStartOnConnect
>>> b.. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE
>>> Services\AutoStartOnDisconnect
>>> See
>>> http://msdn.microsoft.com/library/en-us/wceconct/html/_wcesdk_Registry-based_Notification.asp
>>> for more details.
>>>
>>> Peter
>>>
>>> --
>>> Peter Foot
>>> Windows Embedded MVP
>>> www.inthehand.com | www.opennetcf.org
>>>
>>> "Glyn Meek" <gjmeek@earthlink.net> wrote in message
>>> news:p_Njd.21173$KJ6.8208@newsread1.news.pas.earthlink.net...
>>>> What is the best way to produce a routine on the Pocket PC that will
>>>> enable me to use the Active Sync link to synchronize data files between
>>>> the Pocket PC and the Desktop WITHOUT the user having to get into the
>>>> intricacies of ActiveSync and having to set up there own File
>>>> Synchronization etc.
>>>>
>>>> I have a file in directory a on the desktop and directory b on the
>>>> Pocket PC (a and b will alwsy be the same) and I just want to have the
>>>> files sync automatically. I am aiming at 'less than computer savvy'
>>>> customers, and need this to be SIMPLE.
>>>>
>>>> Anyone know of any white papers, or third party packages/routines that
>>>> might help?
>>>>
>>>> Regards
>>>>
>>>> Glyn J Meek
>>>>
>>>
>>>
>>
>>
>
>



Relevant Pages

  • Re: Form Refresh problem
    ... (remove nothere from the email address if mailing direct) ... The routine then appears to run and exit correctly. ... > listbox is empty of text. ... > displays correctly, but again, just for the first time. ...
    (microsoft.public.excel.programming)
  • Re: UK - FATHER CANCELS CONTACT REGULARLY AT SHORT NOTICE
    ... routine and gets highly distressed and upset when things don't happen ... She doesn't need this kind of uncertaintity in her life. ... He knew when he cancelled the first time that he would not be having ...
    (uk.legal)
  • Re: Documenting your programs for future reference... how do you do it?
    ... It's wasting of time. ... which slow down the program but in a compiled language, ... the first time that if I don't write down what I did, ... sometimes I can write a better routine ...
    (comp.sys.hp48)
  • Re: How to Distribute a New Version
    ... > How do you developers distribute a new improved copy of a database that ... My "first time run" code described above will apply all of the changes to ... template file for the new back end and have my "first time run" routine ...
    (microsoft.public.access.gettingstarted)