Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for Internet being UP.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01229275
Message ID:
01229342
Vues:
12
That's the easiest way I've seen to do this. Very nice!

>>>>Hi Gang!
>>>>
>>>>Do you have guys have any suggestions for code or utilities to use in VFP to check if the Internet is UP to a certain URL (able to connect to the site) and return this info to VFP?
>>>>
>>>>Thanks!
>>>
>>>Try this
>>>
>>>CLEAR
>>>#define FLAG_ICC_FORCE_CONNECTION 0x01
>>>
>>>DECLARE INTEGER InternetCheckConnection IN wininet STRING lpszUrlSTRING, INTEGER dwFlags, INTEGER dwReserved
>>>myFastLoadedSite = "http://www.levelextreme.com"
>>>? InternetCheckConnection(myFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0)
>>>
>>>myFastLoadedSite = "http://www.universalthread_error.com"
>>>? InternetCheckConnection(myFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0)
>>>
>>
>>Thanks!
>>
>>One question... can you use the Internet Address of the URL instead of the URL string?
>>
>>Like myFastLoadedSite = "208.237.158.79"
>>
>>Thanks!
>
>Tommy error in my previous message works with
>
myFastLoadedSite = "http://205.205.57.4"
>? InternetCheckConnection(myFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0)
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform