Re: ComInterfaceType.InterfaceIsDual

From: Mattias Sjögren (mattias.dont.want.spam_at_mvps.org)
Date: 02/06/04


Date: Fri, 06 Feb 2004 22:46:41 +0100


>1. what is late binding, and early binding?

In the context of COM, late binding means calling through the
IDispatch interface. Early binding means that you call interface
methods directly.

>2. given a COM interface in IDL,
> what should i look for in order to decide if
> it is a Late, Early or Both 'binder'?

If it's a dispinterface you would pick InterfaceIsDispatch. If the
interface derives from IDispatch and possibly has the dual attribute,
you would probably use InterfaceIsDual. If the interface derives
directly or indirectly from IUnknown (but not from IDispatch) you use
InterfaceIsIUnknown.

Mattias

-- 
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Relevant Pages

  • Re: Oleaut32.dll needs/doesnt need type library??
    ... late binding support will also be implemented by the ... they indicate this support by deriving from IDispatch. ... seen the term "custom interface" used for an interface that's neither ... to find out that the first type libraries only provided for late ...
    (microsoft.public.vc.atl)
  • IDispatch* , COM Server(LOCAL_SERVER), event data and C#.NET
    ... I have one main inbound interface called ... If IDispatch is the answer, I already did the following, ... I did code following C++ wrapper class for the _ICallInfo impl. ... // object before calling the base class. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Problems with IDispatchImpl
    ... you have your own dual interface defined in another type library. ... You have to check if this IApplication is indeed a dual interface. ... IDispatch by hand (based on your previous post, ... > The IDispatch methods are indeed implemented by IDispatchImpl, ...
    (microsoft.public.vc.atl)
  • Re: Problems with IDispatchImpl
    ... you have your own dual interface defined in another type library. ... You have to check if this IApplication is indeed a dual interface. ... IDispatch by hand (based on your previous post, ... > The IDispatch methods are indeed implemented by IDispatchImpl, ...
    (microsoft.public.vc.atl)
  • Re: Problems with IDispatchImpl
    ... > you have your own dual interface defined in another type library. ... > You have to check if this IApplication is indeed a dual interface. ... > IDispatch by hand (based on your previous post, ... >> perfnurt at hotmail dot com ...
    (microsoft.public.vc.atl)