Embedded ActiveX Event Sink



I use a web browser control and the built-in target name resolution to
launch content in a dialog.

The main type of content is launched in an embedded activex control
using the default launch, similar to flash etc.
e.g.
HTML
BODY
EMBED

I used to have the embedded object stright in my dialog and could
receive events that it generated using the EVENTSINK_MAP from the
wizard
eg
ON_EVENT(CERMyApplicationDlg, IDC_MYCONTROL, 2, OnEvent, VTS_BSTR
VTS_BSTR VTS_R8)

but now I want to receive the events by connecting to the control, I
can traverse the DOM and get to the EMBED tag just fine, I am having
trouble getting the interface to the object in this EMBED tag. Is there
an easy way to get this?

So instead of that I have faked it by placing another control in my app
for testing so that I have a handle to the IUnknown, IDispatch etc

What is the simplest way to connect to these events, they are handled
using wizards in MFC, I know they must be there because I can handle
them through the wizard.
Is it possible to dynamically add events to the EVENTSINK_MAP
or is there some other way I should be doing this.

.



Relevant Pages

  • Venus Express team in launch countdown (Forwarded)
    ... The excitement at ESOC and particularly in the Main Control Room is palpable as launch preparations get under way. ... overseeing the 'B' section of the MCT conduct a series of live pre-flight checks, which included confirming main and alternative data communications with the initial ground control stations for Venus Express, located in Australia, California and Kourou, French Guiana. ...
    (sci.astro)
  • Re: Is there any way to start (and later quit) an EXE file.
    ... the QuitApp subroutine so that it will terminate any process named "VNC.exe" ... Is there also a way to avoid the first macro trying to load the EXE a ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you ...
    (microsoft.public.excel.misc)
  • Re: Is there any way to start (and later quit) an EXE file.
    ... Since I didn't have VNC.exe to test on, the subroutine ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you don't ...
    (microsoft.public.excel.misc)
  • Re: Is there any way to start (and later quit) an EXE file.
    ... Fantastic Steve. ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you don't ...
    (microsoft.public.excel.misc)
  • Re: Quick Launch
    ... There has never been a volume control on the Quick Launch Bar. ... Troubleshooting the Notification Area ... Troubleshooting the Volume Control Icon ...
    (microsoft.public.windowsxp.general)