Re: Find out caller of IDispatch::Invoke

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



dimitrov <s_d_dimitrov@xxxxxxxxx> wrote:
I have a IDispatch implementation, that receives calls from two
different objects ( both of them InternetExplorer - IWebBrowser2 ).
The funny thing is that I cannot find out who is currently calling,
which leads to some pretty comical situations.
Is there a way to get who the caller is?

Or would you suggest creating two different IDispatch implementations,
each one receiving calls from just one object?

Yes, that's what I would suggest.

In this case ( with 2 IDispatch implementations ) I would like to ask:

Is it possible to have regular C++ class implement IDispatch and
creating it just with "new" without making it COM object, registering
it in registry and so on?

Yes. You only need registration if your object has to be creatable by
external clients, with CoCreateInstance and such. You can happily have
internal objects that are not registered.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Find out caller of IDispatch::Invoke
    ... which leads to some pretty comical situations. ... Or would you suggest creating two different IDispatch implementations, ... creating it just with "new" without making it COM object, registering ... I know it is funny to ask things like that, but I am just a COM newbie. ...
    (microsoft.public.vc.atl)
  • Re: [SLE] Re: lywwing - was [SLE] OT - is there an off-topic list?
    ... (I am looking for a place to ask if registering a domain name should be ... because WHOIS always leads to a ... webpage saying network solutions is the worst registrar) ...
    (SuSE)
  • Re: Lifebook Passwords???
    ... Thanks, not that site, but I've searched fujitsu sites ... I'll try registering it and see where that leads. ... I was googling, unsuccessfully, for a specific model number. ...
    (comp.sys.laptops)
  • Re: Lifebook Passwords???
    ... Thanks, not that site, but I've searched fujitsu sites ... I just hat to send it to the landfill ... I'll try registering it and see where that leads. ...
    (comp.sys.laptops)