borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Receiving from XML)Next Topic (Some questions) New Topic New Poll Post Reply
AndreaVB Forum : Pocket PC : Auto Detection of external device
Poster Message
anishpeter
Level: Protégé

Registered: 16-02-2005
Posts: 6

icon Auto Detection of external device

Hi...,
    I am doing a project where i require to detect a pocket pc when it is connected. i have got a code from msdn which searches for the external device provided active sync is running. my program does not require active sync. i am using com port for the transfers ( no activ sync runing ). but the code will launch active sync. can any one help me to change the notification flag to rs 232 detect and help me with this code where i want active sync to be killed as soon as the program detects the presence of the pocket pc and give the com port for my original program for full access. i am sendingthe code ui already have....... pls someone help me urgent..........



Option Explicit

Private Declare Function CeGetDeviceId Lib "ceutil" () As Long

Private Sub Command1_Click()

        ' Look if there is a device connected
        Dim idDvc&
        idDvc& = CeGetDeviceId()
        If idDvc& = 0 Then
            MsgBox " No device connected"
            Exit Sub
        End If

End Sub


For the PPC:
Please read the article here : http://support.microsoft.com/default.aspx?scid=KB%3BEN-US%3BQ276556&

18-05-2005 at 04:22 AM
View Profile Send Email to User Show All Posts | Quote Reply
sanc1
Level: Sage

Registered: 30-09-2003
Posts: 56
icon Re: Auto Detection of external device

Hi Anishpeter,

                     You haven't provided any details of ur device and the OS it's running on. Anyways this link will certainly help you out[if you have the supporting environment]

http://www.opennetcf.org/Library/OpenNETCF.IO.Serial.html



____________________________
Bite the bit
sanc1@rediffmail.com

24-04-2006 at 11:53 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Pocket PC : Auto Detection of external device
Previous Topic (Receiving from XML)Next Topic (Some questions) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder