General information
Category:
ActiveX controls in 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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only