'123456' 这样的字符串有点问题.
调用 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' 也应该是字符串啊.
[解决办法]
tempass定义是否为widestring;在参数中直接用'123456'试试。
[解决办法]
应该是tempass 定义的问题。
你的tempass 定义什么类型的?