
Passing an ASP DLL to a VB ActiveX component
HELP ... I'm trying to pass an ASP array to a VB Component (DLL). Here is
the ASP Page, VB Source, and Error Message:
<HTML>
<HEAD>
<TITLE>Sample of how to send an array in VBScript</TITLE>
THE CODE BELOW IS THE CODE IN THE VB PROJECT:
Function Declaration in Visual Basic 5.0 is as follows: <BR>
Public Sub buyBooks(customerID As Integer, ByRef bookid() As Variant)<BR>
<%
set objOrder = server.createobject("ltree.buy")
objOrder.buyBooks 1, arr
%>
</BODY>
</HTML>
******** COM OUTPUT ********
<Microsoft VBScript runtime error '800a000d'
Type mismatch
/nile1/business/testBuyBooks.asp, line 31
**************************************************