Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing with ByRef to a self-created DLL

Status
Not open for further replies.

learnquick

Technical User
Dec 8, 2001
1
US
I am attempting to pass a recordset (via ByRef) to a DLL which would then populate the recordset and return. The code works fine in VB, however when I attempt to use it in an ASP page it tells me that I have a type mismatch. I use the server.createobject to create the recordset and then pass it in the ASP. If I change the DLL to pass back the recordset as the function it works, but then I lose error checking. Any ideas?

Thanks
 
Script accepts only Variants. You will need a method that accepts the argument As Variant. BTW, an object passed ByVal still gives access to the object because the object reference is passed on the stack but it still refers to the original object. Compare Code (Text)
Generate Sort in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top