r_z_aret
Wed Oct 24 12:10:31 PDT 2007
On Tue, 23 Oct 2007 20:37:31 -0400, "Tom Holmes Jr."
<tom@tomholmes.net> wrote:
>Well ... yeah, that's part of what I wanted.
>
>If I go with "Notification on the Desktop PC when ActiveSync start
>synchronization" then I should be able to run an app from the desktop.
>
>This was in reference to doing data syncing between the PDA and the
>Laptop/Desktop.
>Since then I wrote a web-service in Java using Axis2 as the web-service http
>listener.
>This works perfectly, and I love Java/J2EE better anyway.
>
>The PPC Application is gonna do the sync when the user pushes a button. In
>this case ... the PDA has to be in the cradle.
>So, what I want now is some code to detect when the PDA is in the cradle and
>what the ip address of the PDA and HOST is.
Indeed, my earlier response did not cover this. I did point to a
thread with a similar question. Both responses to that question
missed, but I _think_ the original poster answered the question in a
second post.
These questions or similar are asked and answered rather often, so a
little work with google _will_ find answers. Although they are asked
in enough different ways to make searching a little tricky.
When a device is connected via ActiveSync, the ip address for the
"desktop" will be in PPP_PEER. For more info, use google
(
http://groups.google.com/advanced_group_search) to look up
ppp_peer
in this newsgroup. That search will also provide one way to detect the
connection. I don't know about the ip address for the device.
If you are going to add code to detect when the PDA is docked, you may
as well let it start the transfer automatically. If you are going to
require docking for the transfer, why not let a desktop program do all
the work? If you are always going to have the user start the transfer
by pushing a button, you could detect failure and let the user know.
>I found code on the Net to do that ... but it was for Windows CE ...
Pocket PC is based on Windows CE. So why do you think code for Windows
CE won't work on Pocket PC?
clip
>The PPC app ran when it was in the cradle ... but broke when it was out of
>the cradle and gave me a TypeLoadException.
You've already started a thread about this problem and getting way
more help than I could provide.
>
>Thanks for the help!
> Tom
>
>
><r_z_aret@pen_fact.com> wrote in message
>news:biv8b3lm74nvv3gcs64ngusvm9n3iss3au@4ax.com...
>> On Fri, 3 Aug 2007 16:38:01 -0400, "Tom Holmes Jr."
>> <tom@tomholmes.net> wrote:
>>
>>>I'm writing code in VB.NET and using Windows Mobile 5.0 on a Dell Axim PDA
>>>(a PPC).
>>>
>>>I want to use VB.NET to detect when the PDA is put in the cradle.... So
>>>two things:
>>>
>>>1) can the PPC VB.NET App itself detect when it has been placed in the
>>>cradle??????
>>>
>>>2) can the PPC VB.NET, if it detects being put in the cradle, run another
>>>application on the PPC or on the desktop.
>>
>> Desktop apps can detect cradling. Check a 24-27 Aug 2004 thread called
>> "executing pocket pc program from activesync" in this newsgroup. Also
>> a 25-28 July 2003 thread called "Notification on the Desktop PC when
>> ActiveSync start synchronization" in this newsgroup.
>>
>>
>>
>>>
>>>If I can do either 1 or 2, then I can write an app to do my own database
>>>syncing .... that is until Sync Services is are done.
>>>
>>
>> -----------------------------------------
>> To reply to me, remove the underscores (_) from my email address (and
>> please indicate which newsgroup and message).
>>
>> Robert E. Zaret, eMVP
>> PenFact, Inc.
>> 20 Park Plaza, Suite 478
>> Boston, MA 02116
>> www.penfact.com
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com