Re: problem implementing iolecommandtarget to override javascript erro
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 19 Apr 2005 11:53:46 -0400
"Bob" <Bob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1B651119-E3C3-4343-BD80-DFB41C0CC2F3@xxxxxxxxxxxxx
> I am using MFC (CWebBrowser2) and I have a browser instance in my
> view. In the view class, I have the IOleCommandTarget interface and
> define the Exec and QueryStatus methods, however, the
> IOleCommandTarget is derived from IUknown apparently and I get
> 'cannot instantiate abstract class' errors because of virtual methods
> in that class. I am obviously doing something very wrong, but cannot
> find enough information on this. Should I be implementing like
> IDocHostUIHandler and passing it into the ControlContainer ?
You should implement IOleCommandTarget the same way as, or alongside
with, IDocHostUIHandler as shown in Driller sample.
--
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:
- Prev by Date: problem implementing iolecommandtarget to override javascript erro
- Next by Date: Re: Multiple IE instances
- Previous by thread: problem implementing iolecommandtarget to override javascript erro
- Index(es):
Relevant Pages
|
|