Wiki Home

WinSock OCX


Namespace: WIN_COM_API
Some notes on getting the Microsoft winsock ocx working in VFP.
_VFP.autoyield = .f.
SYS(2333,0)

...in form's load or init method
thisform.olecontrol1.object.connect()

...after setting right ports and addresses

ret_string = ""
this.getdata(@ret_string)

....in data arrival event

this.close()

...in close event

ChrisPiechowicz
Web Server In FoxPro uses winsocket ocx to implement a full web server.
See also WinSock OCXSample
Category ActiveXControls
( Topic last updated: 2000.05.29 03:24:22 PM )