ASP调用COM+(VB),报错说类型不一致

用VB写的COM+,ASP中Server.CreateObject成功,但调用函数就报错说类型不一致。

VB:
Public Function TestArray(input_array() As String)
...
End Function

ASP:
Dim ary(10)
ary(0) = "0"
ary(1) = "1"
...
ary(10) = "10"

obj.TestArray(ary)就报以上的错?(obj已创建成功)
---------------------------------------------------------------

Public Function TestArray(input_array() As Variant) '改为Variant试试
...
End Function

Published At
Categories with Web编程
Tagged with
comments powered by Disqus