Scripting and objects with multiple interfaces 
Author Message
 Scripting and objects with multiple interfaces

Hi everybody,
  I developed a set of COM objects with a number of interfaces.
How do I get access to one of the interfaces implemented like in normal
applications I would do trought QueryInterface?
It looks like it doesn't work in ASP.
Now, I added a method that returns an IDispatch defined as

    GetRef(GUIDID : widestring) : IDispatch

and this is practically identically to the Server.CreateObject method...
How is it possible that Server.CreateObject works and mine doesn't?
The objects works fine in a normal exe, it is only in ASP that doesn't.

Thanks



Mon, 14 Apr 2003 22:41:29 GMT  
 Scripting and objects with multiple interfaces
To the best of my knowledge-and if memory serves-scripting environments like
ASP require you to implement the IUnknown interface-something VB generally
takes care for you.

Ryan
______________
This is Madness!!!


Quote:

> Hi everybody,
>   I developed a set of COM objects with a number of interfaces.
> How do I get access to one of the interfaces implemented like in normal
> applications I would do trought QueryInterface?
> It looks like it doesn't work in ASP.
> Now, I added a method that returns an IDispatch defined as

>     GetRef(GUIDID : widestring) : IDispatch

> and this is practically identically to the Server.CreateObject method...
> How is it possible that Server.CreateObject works and mine doesn't?
> The objects works fine in a normal exe, it is only in ASP that doesn't.

> Thanks



Tue, 15 Apr 2003 00:55:49 GMT  
 Scripting and objects with multiple interfaces

Quote:
> ASP require you to implement the IUnknown interface-something VB generally

takes care for you.

That's in it and actually VB works throught IDispatch.



Tue, 15 Apr 2003 01:07:37 GMT  
 Scripting and objects with multiple interfaces
Thanks for the clarification. Take this with a grain of salt-I heard this at
a VBITS session held by a Developmentor.com guy-but in ASP you can not
access custom interfaces only the IDispatch interface.

Some supporting info: http://www.asptoday.com/articles/19990917.htm


Quote:

> > ASP require you to implement the IUnknown interface-something VB
generally
> takes care for you.

> That's in it and actually VB works throught IDispatch.



Tue, 15 Apr 2003 01:25:41 GMT  
 Scripting and objects with multiple interfaces

Thanks for the links. EXTREMELy nice, expecially the article linked at the
end of the one you mentioned.
Funnily I implemented that solution myself and now works fine.
Thank you very much for your time.



Tue, 15 Apr 2003 03:08:55 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Scripting and objects with multiple interfaces

2. Does VBScript support objects with multiple interfaces?

3. VBScript and com objects with multiple interfaces

4. Multiple interfaces to the same object instance in VBScript

5. Multiple Interfaces for Scripting

6. Multiple COM *Interfaces* from jscript?

7. JScript & multiple (VB) interfaces

8. Multiple Dual Interfaces

9. Accessing Multiple Interfaces

10. Access to multiple interfaces of an ATL component from VBScript

11. Access to multiple interfaces of an ATL component from VBScript

12. VB Implementing Multiple Interfaces and VBScript - Any Suggestions?

 

 
Powered by phpBB® Forum Software