Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using wininet.DLL Question
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Using wininet.DLL Question
Divers
Thread ID:
00631860
Message ID:
00631860
Vues:
99
I am using HttpOpenRequest in wininet.dll.

However, when the Server is not responding, it totally locks up my VFP application. I need to do Ctrl_Alt-Del and End Task to get out.

I am using the following code to setup Timeouts, but it is not working!!. I could not find any sample code on this, so I improvised!

lcBuffer = " "
lnBufsize = 0
#DEFINE INTERNET_OPTION_CONNECT_TIMEOUT 2
#DEFINE INTERNET_OPTION_RECEIVE_TIMEOUT 6
#DEFINE INTERNET_OPTION_SEND_TIMEOUT 5
= InternetSetOption(0, INTERNET_OPTION_CONNECT_TIMEOUT, @lcBuffer, @lnBufsize)
= InternetSetOption(0, INTERNET_OPTION_RECEIVE_TIMEOUT, @lcBuffer, @lnBufsize)
= InternetSetOption(0, INTERNET_OPTION_SEND_TIMEOUT, @lcBuffer, @lnBufsize)
* -------------------------------------------------

Does anybody know how to correctly set these Timeouts and overcome this problem ?

Cyrus
Cyrus Nima
-------------------
cyrusnima@gmail.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform