Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement