三层结构中客户端调用远程方法参数传递不正确
应用服务器中的方法:
function TBU_server.CheckUsr(const code, pwd: WideString): Shortint;
begin
Application.MessageBox(pchar(code+' '+pwd),pchar('提示'),mb_ok);
if OpenSql(tmpAdoQuery1,'select code from usr where code='+''''+code+''''+' and pwd='+''''+pwd+'''') then
result:=1
else
result:=0;
end;
在客户端调用:
DCOMConnection1.AppServer.CheckUsr('aaa','123')时发现参数没有被正确传递?
服务端显示结果为‘a’.
小弟初学三层,望各位高手不吝赐教!