asp中调用自编VB ACTIVEX DLL组件中数组参数的问题
activex dll prog ID "reportdata.access"
Public Sub GetReportFileName(strName() As Variant, intNum() As Variant)
strName(0) = "MR"
strName(1) = "zhang"
intNum(0) = 1
intNum(1) = 1
End Sub
asp文件
<html>
<body>
<%
ReDim strIn(10)
ReDim numIn(10)
Set obj = Server.createObject("reportdata.access")
obj.GetReportFileName strIn, numIn
set obj = nothing
Public Sub GetReportFileName(strName() , intNum() )
strName(0) = "MR"
strName(1) = "zhang"
intNum(0) = 1
intNum(1) = 1
End Sub
%>
<%=strIn(0)%>
<br>
<%=strIn(1)%>
</body>
</html>
调用时出问题,参数类型不匹配
修改obj.GetReportFileName strIn, numIn为
GetReportFileName strIn, numIn调用asp中函数,结果正常
但asp中函数与activex dll中函数相同!
怎么传数组给vb activex dll?
谢谢