Passing an object to an ActiveX dll from ASP script 
Author Message
 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



Fri, 29 Nov 2002 03:00:00 GMT  
 Passing an object to an ActiveX dll from ASP script
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



Sat, 30 Nov 2002 03:00:00 GMT  
 Passing an object to an ActiveX dll from ASP script
I had tried everything except the (ByRef arg as Variant), which was
the only one to work.

Now it seems my ActiveX dll will only work from the ASP script, and
not from VB.

Thanks for the help.

On Mon, 12 Jun 2000 22:55:41 -0700, "Michael Harris"

Quote:

>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



Sun, 01 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing object variables to an activex dll

2. Passing object variable to an Activex dll

3. Passing a Scripting.Dictionary to ActiveX DLL

4. Pass array from ASP to VB ActiveX DLL

5. Passing Values into an ActiveX DLL from ASP ??

6. Passing Values into an ActiveX DLL from ASP ??

7. Passing an ASP DLL to a VB ActiveX component

8. Passing values by reference from java / vb script to ActiveX object

9. Passing values by reference from java / vb script to ActiveX object

10. Passing word object to ASP from vb dll

11. ObjectContext vs Passing ASP object to DLL

12. .ASP - ActiveX Help, Cant pass ActiveX vairables

 

 
Powered by phpBB® Forum Software