Re: How to query activex controls' interfaces in web pages?



Thank you.
I have found a way to get the activex control interface by using
CDhtmlDialog::GetControlDispatch or CDhtml::GetElementInterface.

HRESULT GetControlDispatch(
LPCTSTR szId,
IDispatch **ppdisp
);

HRESULT GetElementInterface(
LPCTSTR szElementId,
REFIID riid,
void** ppvObj
);


"Igor Tandetnik" wrote:

> "Hendy" <Hendy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:A22367D6-A3F5-4CD1-90C8-9C9734A7E76B@xxxxxxxxxxxxx
> > As a COM object, all interface implements the "QueryInterface"
> > method. Right?
>
> Right.
>
> > Below is a fragment of C++ code of queryinterface and
> > queryservice:
>
> And your question is... ?
>
> I'd venture a guess that the following KB article might be of interest
> to you: KB172763 "INFO: Accessing the Object Model from Within an
> ActiveX Control"
> --
> 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
>
>
>
.