Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
CodeName33 писал(а):Может кто знает в чём проблема?
SYMPTOMS
A Winsock control may fire a DataArrival event with valid data length (a number that is greater than 0) after the Close event. If you try to call the GetData method for that event, you receive the following error message:
Run-time error: 40006
Wrong protocol or connection state for the requested transaction or request.
CAUSE
This problem occurs because of a bug in the Winsock control. Although the occurrence of this problem depends on data flow between two entities, the problem may occur more consistently when the client (receiver) application is much slower than the server (transmitter) application, and when no application-level flow control is implemented.
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 5