Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Am I online?
Message
De
22/04/2005 08:27:46
 
 
À
21/04/2005 16:20:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
01007183
Message ID:
01007413
Vues:
21
Mike: Another question... do you know how to control the useage of the dial-up dialog? When you start VFP9 and are off-line, you get the dialog to launch your dial-up service. Your code will do the same the first time you invoke it. (Tries to connect to the URL) If you close the dialog without connecting, on subsequent execution of the code it does not try to launch the dial-up. Can you a) omit the dial-up when offline and running the code for the first time, and b) launch the dial-up programatically if you know you are not connected?

Thanks,

dg
>This is how I test:
>
>
>Declare Integer InternetCheckConnection in Wininet.dll String Url, Long dwFlags, Long Reserved
>If InternetCheckConnection(lcURL, 1, 0) = 0
>	MessageBox("Not connected to the internet.", 16)
>EndIf
>
>
>If you're checking for a connection so you can call a web service or some other kind of HTTP functionality, you can pass that specific URL as lcURL.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform