Re: ComInterfaceType.InterfaceIsDual
From: Mattias Sjögren (mattias.dont.want.spam_at_mvps.org)
Date: 02/06/04
- Next message: Roman: "Excel Versions"
- Previous message: Mattias Sjögren: "Re: How can I call from C# an out parameter that is an array?"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Roman: "Excel Versions"
- Previous message: Mattias Sjögren: "Re: How can I call from C# an out parameter that is an array?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|