Checking and forcing internet connection

Discussion in 'Questions (Windows Mobile)' started by bluedude, Sep 14, 2009.

  1. bluedude

    bluedude Well-Known Member Licensed User

    Hi,

    I'm using the ftp stuff but that does not automatically force the internet connection. Any other options to use to check and force?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Cableguy

    Cableguy Expert Licensed User

    This code works as I am using it in my new aproach to dll2date....

    Most devices use a "Connect when needed" basis internet conection, so I believe that starting an internet connection should be possible using some WinMo API, but I dont know wich and it may be device dependant...
     
  4. schimanski

    schimanski Well-Known Member Licensed User

    If you only want to force a internet-connection, this is an easy way:

    Code:
    Sub GPRS_Aufbau
       ErrorLabel(ConnectionError)
       
    DoEvents
       request.New1(
    "http://www.adress.de")     ' init HTML-Object'
       request.KeepAlive=True
       request.GetResponse
       
    Return
       
       ConnectionError:   
    End Sub
    You don't need an existing internet-adress, because when the adress doesn't exist, the error label catches the error, but the internet-connection is hold on. I have tested ot on several Pocket-PCs, it always works.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice