函数这样子定义
function TSB100BPC.ConnectTcpip(dwMachineNumber: Integer; var lpszIPAddress: WideString;
dwPortNumber: Integer; dwPassWord: Integer): WordBool;
begin
Result := DefaultInterface.ConnectTcpip(dwMachineNumber, lpszIPAddress, dwPortNumber, dwPassWord);
end;
我这样子使用,却提示错误if ConnectTcpIp(5,'192.168.0.220',5005,0) then
function TSB100BPC.ConnectTcpip(dwMachineNumber: Integer; var lpszIPAddress: WideString;
dwPortNumber: Integer; dwPassWord: Integer): WordBool;
begin
Result := DefaultInterface.ConnectTcpip(dwMachineNumber, lpszIPAddress, dwPortNumber, dwPassWord);
end;
我这样子使用,却提示错误if ConnectTcpIp(5,'192.168.0.220',5005,0) then
解决方案 »
- D6,工程编译启动时的问题,有点诡异
- 求按行读取WORD文件代码!
- 如何用delphi编写一个登录窗口,登录后切换到主界面
- 怎样读取所有驱动器到一组checkbox中?
- 准备辞职,郁闷中,散分!
- QuickReport报表使用什么控件能够将多行超宽文本输入、显示、打印?
- 编译时没有问题,但是在delphi中按F9时,就会出错
- 怎么把数据库里的图片字段存储为ICO的图标啊?!
- Delphi 类互相引用问题!有什么办法!?
- 三层开发遇到的问题:delhpi的bug还是浏览器的版本问题?
- 这样也不对,就说select语句语法错误。。。
- property xx:类型 read getxxx write setxxx;
addr:WideString;
begin
addr := '192.168.0.220';
if ConnectTcpIp(5,addr,5005,0) then
end;