Re: Simple implementation of IDispatch for HTMLEvents??
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 23 Apr 2007 07:54:55 -0400
<key88sf@xxxxxxxxx> wrote in message
news:1177306613.219345.100940@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 22, 8:51 pm, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
You don't need to implement any methods except Invoke. The other
three are never called on the event sink. Invoke is called with a
dispid of DISPID_VALUE and, I believe, a single parameter referring
to the element that fires the event.
So are you saying I dont even need to derive from IDispatch ?
You do. You simply return E_NOTIMPL from all methods except Invoke.
My problem is really just trying to get this thing
to *compile* when deriving from IDispatchImpl<> or similar classes.
Don't derive from IDispatchImpl, derive from IDispatch directly.
Is
there an example somewhere I can see?
http://support.microsoft.com/kb/181277
"Using ATL to Implement Only IUnknown" section.
--
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
.
- References:
- Simple implementation of IDispatch for HTMLEvents??
- From: key88sf
- Re: Simple implementation of IDispatch for HTMLEvents??
- From: Igor Tandetnik
- Re: Simple implementation of IDispatch for HTMLEvents??
- From: key88sf
- Simple implementation of IDispatch for HTMLEvents??
- Prev by Date: Problems with CHtmlView
- Next by Date: Embedded IWebBrowser doesn't fire OnBeforeNavigate2 all the time
- Previous by thread: Re: Simple implementation of IDispatch for HTMLEvents??
- Next by thread: Problems with CHtmlView
- Index(es):
Relevant Pages
|
|