关于ASP调用Delphi写的ActiveX的问题(200)

  • 主题发起人 liujiaqi
  • 开始时间
L

liujiaqi

Unregistered / Unconfirmed
GUEST, unregistred user!
我写了一个ActiveX, 是界面, 是DLL文件, 文件中有两个函数 function GetIdentificationInfo(out Name: WideString;
out Sex: WideString;
out Folk: WideString;
out Birthday: WideString;
out Address: WideString;
out CardID: WideString;
out OrganName: WideString;
out begin
Date: WideString;
out EndDate: WideString): SYSINT;
safecall;
function GetName: WideString;
safecall;我是用下面的ASP网页调用:<HTML><BODY><TITLE> Testing Delphi ASP </TITLE><CENTER></CENTER><HR><% Set DelphiASPObj = Server.CreateObject("ProIdentification.TIdentification") Dim sName sName = DelphiASPObj.GetName response.Write(10000) response.Write("123" + sName)%><HR></BODY></HTML>可以调用成功, 这只是调用有返回值的函数, 但我不知道怎么调用有输入参数的函数,请大家指点, 问题补充:我现在用另外一种方法实现, 就是把那些输出参数连成一个字符串中间用个|线隔开, 然后通过返回值返回过去, 现在那边调用可以调到, 但不知道为什么比如:本来按我DLL里写的代码应该是返回: 刘佳奇|男|24但我在那边调用以后显示的值却只有:刘佳奇如果我把刘佳奇从Delphi里边去掉, 调用获取到的值是: |男就是后面不显示, 不知道为什么, 我把|线换成逗号也不行, 请大家帮我看一下这是什么问题,
 

轻舞肥羊

Unregistered / Unconfirmed
GUEST, unregistred user!
供ASP调用的话,out参数只能用variant *
 

Similar threads

S
回复
0
查看
927
SUNSTONE的Delphi笔记
S
S
回复
0
查看
752
SUNSTONE的Delphi笔记
S
顶部