Click to See Complete Forum and Search --> : Best design for COM Object


Andrew Wright
May 21st, 2002, 08:22 AM
I need to make some COM objects that are fully usable from VBScript and JavaScript. They use multiple interfaces and one of these custom interfaces is used to pass the object. For example, get_Foo returns the object using the IFoo interface. I have heard that there may be problems with JavaScript if the IFoo interface is not the default dispatch interface. Is it better to use a wrapper object?

SButler
May 21st, 2002, 01:13 PM
From a VB perspective just create a standard class module that does NOT implement an interface. You can but scripting clients cannot take advantage of this interface since they utilize IDispatch.

I hope this helps. I can clarify further if needed