Re: A puzzling question

From: Simon Trew (ten.egnaro_at_werts)
Date: 03/05/04


Date: Fri, 5 Mar 2004 15:16:22 -0000


"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:ucw1Y6rAEHA.1212@TK2MSFTNGP12.phx.gbl...
> "Simon Trew" <ten.egnaro@werts> wrote in message
> But anyway, I don't think that that would definitely be equivalent
> (because the
> > guarantees for IUnknown don't have to apply to other interfaces).
>
> I'm not sure what you are saying here. Can you explain a specific
> scenario that worries you?

A simple case would be if a class factory succeeded/failed depending on the
IID passed in. Then obviously it could be made to work for IID_IMyInterface
but not for IID_IUnknown. So it would appear to me that COM has to honor
which IID is passed to the class factory for the CreateInstance call.

Perhaps you will tell me that class factories are not allowed to do this?

S.



Relevant Pages

  • Re: Interop with unregistered DLLs
    ... > the class factory or the DLL itself, so this solution works for me, ... > coclass BagEx { ... as the class contains two interfaces. ... >>If you need Vtbl binding you need to register the Interface, ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Automation from NT Service Launches 2nd process
    ... NT Service that uses an IScriptSite interface to invoke a vbscript. ... MyApplication is running on the users desktop. ... factory to call createinstance which returns the appropriate interface. ... a new process and fails in the class factory CreateInstance() because ...
    (microsoft.public.vc.atl)
  • Re: DMO manually created for graph with wrapper?
    ... The class factory and the actual object class should be 2 ... punk should be of type IClassFactory*, not IUnknown*. ... that, since every COM interface inherits IUnknown, you pass ... Read Roman's latest post, who knows about ATL. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: DMO manually created for graph with wrapper?
    ... The class factory and the actual object class should be 2 ... punk should be of type IClassFactory*, not IUnknown*. ... that, since every COM interface inherits IUnknown, you pass ... Read Roman's latest post, who knows about ATL. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Problem understanding how WebBrowser Control communicates with APP
    ... That's why you register a class factory with the IInternetSession, ... post) which calls CreateInstance for the IClassFactory but does not ... Could you also let me have the IClassFactory code for this sample so I ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)

Loading