CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Posts
    1

    Question Best design for COM Object

    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?

  2. #2
    Join Date
    Dec 2000
    Posts
    15
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured