Re: sinking ie events in ATL



<Nishant2004CSE@xxxxxxxxx> wrote in message
news:1156574994.084442.263360@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
by using Shell Execute as well as CreateInstance, but my exact problem
is that after connection is established, i keep waiting for my dll to
come in Invoke function, sometimes it comes inside invoke and
sometimes dont...

I don't understand. Show how you create an IE instance, and how you
advise your event sink. I'd be particularly interested to see how you
manage to advise your event sink when using ShellExecute to run IE,
considering you don't get back any interface pointers.

Once connection is established, ie instances get hanged

What do you mean, "get hanged"?

Doing event sinking for ie in MFC and ATL are different?

It's the same under the hood, but MFC and ATL use different syntax to
set up the sink.

For event sinking in ATL , we need to write some SINK_MAP to get IE
events?

See KB Article KB194179 "AtlEvnt.exe sample shows how to creates ATL
sinks by using the ATL IDispEventImpl and IDispEventSimpleImpl classes"
--
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

  • ASP 2.0 web page -> C++/ATL/COM service -> C# test app for service
    ... Here's where the event sink comes in: ... the class inside the DLL. ... different process spaces may make the catching of the event impossible ... or service (ATL Simple Object), ...
    (microsoft.public.dotnet.framework.interop)
  • Re: CoUninitialize crashes
    ... classes to create the client's event sink and recently the application ... to call my server's methods from various threads in the client. ... worker thread that handles atl events. ...
    (microsoft.public.vc.atl)