Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems in using WinSock...
Message
 
 
À
20/03/2000 12:05:38
Joe Sandoval
Healthcare Computer Corporation
Greensboro, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00347889
Message ID:
00365042
Vues:
20
Did you ever find a solution. I am trying to access winsock directly as well and I keep running into people who take the easy way out and use a control. I do not want to distribute anything with my application.

I successfully initalized the socket using a call to the following:

m_resultcode = WSAStartup ( 257, @ptr_wsadata ) && initialize the socket

however when I make a call to Socket(af,sckt,prot) I get the (10044 - WSAESOCKNOSUPPORT) error.

I have tried to use:

m_no_protocols = WSAEnumProtocols ( 0, @ptr_wsaenum, @p_enumlen )

y = 1
for x = 1 to m_no_protocols
m_resultcode = WSASocket ( substr(ptr_wsaenum,y,372), 0, 0 )
y = (x * 372) + 1
m_resultcode = WSAGetLastError ( )
@ 9 + x,25 say "E-Error: " + str(m_resultcode)
next x

but I still get the same error. The calls to the dlls work fine in VB or any other language execept this one.

If you know of any solution let me know :)

thanks,

Dan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform