'123456' 这样的字符串有点问题.

qazwsxhai 2013-03-14 02:01:29

调用 php 写的webservice

function GetBalance(const Unitid: Integer; const Username: WideString; const Password: WideString): GetBalanceResponse; stdcall;


我这样调用 .

tempass := '123456';
getr1 := htpr2.GetBalance(100,'xiao',tempass);

当 tempass := 'aaaafdfsd'; 英文字符时一切正常, 当 tempass := '123456';

就不行了.

出现 econverterror with messgae ''' is not a valid integer value
异常...~~

怎么回事呢. 照理说 '123456' 也应该是字符串啊.
...全文
119 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hongss 2013-03-14
  • 打赏
  • 举报
回复
应该是tempass 定义的问题。 你的tempass 定义什么类型的?
qazwsxhai 2013-03-14
  • 打赏
  • 举报
回复
引用 1 楼 Oraclers 的回复:
tempass定义是否为widestring;在参数中直接用'123456'试试。
也是不行的... 百思不得其解啊.
Oraclers 2013-03-14
  • 打赏
  • 举报
回复
tempass定义是否为widestring;在参数中直接用'123456'试试。

16,749

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧