
Passing an object to an ActiveX dll from ASP script
Is the oX object ("Xxx.Yyy") one of your own creation? If it's a VB ActiveX DLL that you wrote,
then the SomeFunc() method needs to look something like
Function SomeFunc(ByVal argWhatever As Dictionary) _
As ???SomeObject??? '(or Variant or Object)
or
Function SomeFunc(ByRef argWhatever As Variant) _
As ???SomeObject??? '(or Variant or Object)
--
Michael Harris
MVP Scripting
Is this possible?
I would like to do the following:
Dim o, oX, oRet
set oX = Server.CreateObject("Xxx.Yxx")
set o = Server.CreateObject("Scripting.Dictionary")
set oRet = oX.SomeFunc(o)
When I try to run this, I get a "Type Mismatch" error on the last
line. When I change the ActiveX function to take a string instead (and
pass in a string), it all works.
Any help with this will be greatly appreciated.
PS: If possilble, email responses to me at the address below, since I
can't always get access to news.
TIA