错误:E2250 There is no overloaded version of 'UpperCase' that can be called with these arguments
代码:
begin
AStream := TStringStream.Create('');
try
SResponse := UpperCase(ReadLn);
if Pos('SMS_YWZCZX', SResponse) = 0 then Break;
send_msgs:='1001'+'&'+'qf'+'&'+'qf'+'&'+trim(nbr)+'&'+trim(msg_content)+'&'+local_ip;
WriteLn(send_msgs);
{ read all bytes until disconnected no length er in stream }
ReadStream(AStream, -1, True);
AStream.Seek(0, soFromBeginning);
if AStream.DataString='短信发送成功' then
inc(success_count)
else
inc(failed_count);
result:=true;
finally
Disconnect;
AStream.Free;
end;
delphi7编译成功,2007里面咋不行呢?
代码:
begin
AStream := TStringStream.Create('');
try
SResponse := UpperCase(ReadLn);
if Pos('SMS_YWZCZX', SResponse) = 0 then Break;
send_msgs:='1001'+'&'+'qf'+'&'+'qf'+'&'+trim(nbr)+'&'+trim(msg_content)+'&'+local_ip;
WriteLn(send_msgs);
{ read all bytes until disconnected no length er in stream }
ReadStream(AStream, -1, True);
AStream.Seek(0, soFromBeginning);
if AStream.DataString='短信发送成功' then
inc(success_count)
else
inc(failed_count);
result:=true;
finally
Disconnect;
AStream.Free;
end;
delphi7编译成功,2007里面咋不行呢?
解决方案 »
- 数据库连接池的问题,请大家帮忙,
- 好书推荐
- 用fastreport打印的问题。
- listview如何实现换行?在线等待...
- 关于idtcpserver和idtcpclient对stream的发送与接收问题。
- 有关记录集的问题,在线等...
- 请问在Delphi中,为什么点击stringgrid中的Button,它的click事件不被响应呢?
- 用这个Wise Installer 作安装程序,用它的那个版本好点?
- 请问怎么样从不同的服务器端获取存储过程的脚本?(要求用一个统一的方法)
- 100分请老师.教做最简单dll的?(a+b)返回a+b的和.
- Tdatabase自动连接sql
- 哪位用过epson 590k?为什么fastreport的page_heightendless属性在此打印机上不起作用?
把它定义成没有参数的函数试试
ShellExecute(Application.MainForm.Handle, 'Open', ATempFileName, nil, nil, SW_SHOW);
都会报这种错误
解决方法就说过改ShellExecute,具体怎么改也没说……