Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem Accessing tags using IHTMLElementCollection.

41 views
Skip to first unread message

nexolite

unread,
Sep 29, 2009, 10:28:11 AM9/29/09
to
Hi,

I am trying to access the div tags froma webpage(IE), but the problem is :

CComPtr<IDispatch> spDisp;
I am using IHTMLElementCollection::tags(CComVariant("div"),&spDisp)
but now what interfaces are supported by spDisp? as
IHTMLElement2/IHTMLElement are both returing E_NOINTERFACE (from
pDisp->QueryInterface()).

Please help me.
Thank you

Igor Tandetnik

unread,
Sep 29, 2009, 3:41:15 PM9/29/09
to
nexolite <nexo...@discussions.microsoft.com> wrote:
> I am trying to access the div tags froma webpage(IE), but the problem
> is :
>
> CComPtr<IDispatch> spDisp;
> I am using IHTMLElementCollection::tags(CComVariant("div"),&spDisp)
> but now what interfaces are supported by spDisp?

IHTMLElementCollection
--
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


nexolite

unread,
Sep 30, 2009, 12:46:02 AM9/30/09
to
Thanks a lot Igor,
Also is there a way I can enumerate the items /elements in this collection ?

Scot T Brennecke

unread,
Sep 30, 2009, 3:16:40 AM9/30/09
to
0 new messages