Re: Can two interfaces have methods with the same name but different arguments?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Muth (bmuth_at_mvps.org)
Date: 01/11/05


Date: Mon, 10 Jan 2005 17:09:29 -0800


> Can two interfaces have methods with the same name but different
arguments?

Yes, of course.

> And, if two interfaces have the methods with the same name with different
> arguments, which do you get when you use the Dispatch interface's
> GetIDsOfNames method?

The question makes no sense. You can only have one interface marked as dual.

Remember the mantra: multiple dual interfaces on the same object violate COM
identity rules.

Brian



Relevant Pages

  • Re: object system...
    ... MI); there are Interfaces, ... modifiable operators like this don't exist in most languages, ... about a sane multiple dispatch instead of the mess. ... probably be optimized via a hash table or similar...). ...
    (comp.object)
  • Re: Basic oder nicht?
    ... Der Compiler will irgendwann mal elementare Typen nutzen, ... man kann mit Interfaces wunderbar Module ... implementieren Eben weil der Dispatch nicht langsam ist. ...
    (de.org.ccc)
  • Re: Detecting support for event types
    ... Perhaps I need to use hasFeature first, ... interfaces where the module itself isn't supported, ... figure it's more likely browsers will pretend to support modules than ... dispatch being successful and the dispatch will fail then the DOM ...
    (comp.lang.javascript)
  • Re: Can two interfaces have methods with the same name but different arguments?
    ... I think Brian and I are on the same wavelength about the goal. ... to support calling methods through IDispatch. ... > one of the interfaces you are dealing with, ...
    (microsoft.public.win32.programmer.ole)
  • Re: what is the COM Component for Netmeeting SDK
    ... Tarundeep Singh Kalra wrote: ... > Brian what is the physical DLL file that has all those interfaces? ... I am not sure what "all" interfaces you are referring to but NetMeeting has ...
    (microsoft.public.internet.netmeeting)