i := MS.Position;
MS.Position := 0;
MS.Read(SendBuff, i);
i := UDPClient1.SendBuffer(SendBuff,i); i := UDPClient1.SendBuffer(SendBuff,i);报错
[Error] Unit1.pas(81): Incompatible types: 'Integer' and 'procedure, untyped pointer or untyped parameter'
定义如下
SendBuff : Array[1..MAX_BUFF] of char;
MS : TMemoryStream;
i :integer;
没问题吧
MS.Position := 0;
MS.Read(SendBuff, i);
i := UDPClient1.SendBuffer(SendBuff,i); i := UDPClient1.SendBuffer(SendBuff,i);报错
[Error] Unit1.pas(81): Incompatible types: 'Integer' and 'procedure, untyped pointer or untyped parameter'
定义如下
SendBuff : Array[1..MAX_BUFF] of char;
MS : TMemoryStream;
i :integer;
没问题吧
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货