I need to send and receive bytes from TCP/IP port using VFP.
I'm trying to use Microsoft Winsock Control, version 6.0 shipped
with VFP 6. I added this control into a form.
Problems:
1. When I add code to mswinsck error event, this code will not run !
How to get information about error?
There are no properties which can be used to determine error cause!
2. I want to use TCP/IP port read/write from VFP 5.
However, the following code causes error
OLE error code 0x80020010: Invalid callee
in line
.OBJECT.Connect()
Is it possible to use TCP/IP port from VFP 5 ?
3. Are there other ways to read/write TCP ports form VFP 5 ?
* form.init() :
WITH THISFORM.olecontrol1
.Protocol = 0
.RemoteHost = '127.0.0.1'
.RemotePort = 7
.OBJECT.Connect()
do while .state = 6
enddo
if .state=9
messagebox( 'Error, but no more information, error event does not occur!' )
endif
Andrus