三层结构中,应用服务器,用socket连接,但在程序执行
if not SocketConnection.connectioned then SocketConnection.connectioned:=true;
时出现no address specified!错误,
但在设计时,SocketConnection的connected属性改为true没有任何错误,
请问高手这是为什么????
if not SocketConnection.connectioned then SocketConnection.connectioned:=true;
时出现no address specified!错误,
但在设计时,SocketConnection的connected属性改为true没有任何错误,
请问高手这是为什么????
这个程序在delphi的安装目录下bin目录里。
socketconnection1.address:='服务器的IP';
socketconnection1.connected:=true;
socketconnection1.address:='服务器的IP';
socketconnection1.connected:=true
都是正确的
socketconnection1.address:='服务器的IP';
socketconnection1.servername:='COM服务名';
socketconnection1.connected:=true;