Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for Internet connection
Message
De
08/10/2003 05:10:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00836015
Message ID:
00836100
Vues:
9
Hi Cyrus,

There has been a similar request for help: Can I truly check for Internet connection? Thread #724735 Message #724735

(Perhaps you already read it.) It does not give a solidproof solution.

In one of my applications I offer a connection to the internet. The user clicks on the button/text and the connection is tried. I don't care about whether or not a connection really exists. If the connection fails, a messagebox might be presented explaining the failure. This might be regarded a suboptimal solution?!


>I have been using the following function (from this beard) to see if the computer is connected to Internet;
>
>------------------------------------------------------------------
>DECLARE Integer InternetCheckConnection IN WININET.DLL;
> String Url, Long dwFlags, Long Reserved
>IF InternetCheckConnection(cURL,1,0) <> 0
> RETURN .F.
>ENDIF
>------------------------------------------------------------------
>
>I have the following two problems with it.
>
>1) On a customer's Win-98 station, the Internet Explorer can easily access the same cURL above, but this function is returing .F. - How could this be?
>
>2) On stations with Dialup connection, this function prompts the Dialup dialog to popup. My intention is just to KNOW whether the conenction exists or not, and not to initiate the connection. Is there another function that would do that ?
>
>Thanks for your help.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform