为什么我编出来的程序,每次按“连接”的按扭是都出现大红叉
内容如下:Project pmain.exe raised exception class ESocketError with message 'Asynchronous socket error 10061'.
比如其中一个程序语句,是“连接”的按扭的:
ClientSocket1.Active:=False;
ClientSocket1.Address:=Edit2.Text;
ClientSocket1.Active:=True;
哪里错了啊?
我用的是TClientSocket与TServerSocket控件的。
内容如下:Project pmain.exe raised exception class ESocketError with message 'Asynchronous socket error 10061'.
比如其中一个程序语句,是“连接”的按扭的:
ClientSocket1.Active:=False;
ClientSocket1.Address:=Edit2.Text;
ClientSocket1.Active:=True;
哪里错了啊?
我用的是TClientSocket与TServerSocket控件的。
clientsocket.Host:='127.0.0.1';
clientsocket.Active:=true;