foxprogram
Programmer
Hello!
I would like to use my PONG
game by network with 2 machines. I would like to send positions of the player's figure to each other.
I use winsock object, and I have a problem:
THISFORM.olecontrol1.Object.Protocol=1
THISFORM.olecontrol1.Object.RemoteHost="user1"
THISFORM.olecontrol1.Object.RemotePort=9022
THISFORM.olecontrol1.Object.localPort=9022
THISFORM.olecontrol1.Object.Bind(9022)
karakterek=alltrim(str(120)) && .top coordinate of the player one's figure
THISFORM.olecontrol1.Object.SendData(karakterek)
If I try to use sendData method, I always get this error message:
"OLE IDispatch exception code 0 from winsock:Invalid argument..."
And the same situation, if I try to use the getData method.
What whould be the problem ?
I would like to use my PONG
I use winsock object, and I have a problem:
THISFORM.olecontrol1.Object.Protocol=1
THISFORM.olecontrol1.Object.RemoteHost="user1"
THISFORM.olecontrol1.Object.RemotePort=9022
THISFORM.olecontrol1.Object.localPort=9022
THISFORM.olecontrol1.Object.Bind(9022)
karakterek=alltrim(str(120)) && .top coordinate of the player one's figure
THISFORM.olecontrol1.Object.SendData(karakterek)
If I try to use sendData method, I always get this error message:
"OLE IDispatch exception code 0 from winsock:Invalid argument..."
And the same situation, if I try to use the getData method.
What whould be the problem ?