Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using IHTMLElementCollection::item Method

Posted on 2004-04-06
2
Medium Priority
?
1,822 Views
Last Modified: 2008-01-16
In Windows using Visual C++ version 6, I am using the item method of IHTMLElementCollection to get a certain item with a given id or name in an HTML document.  There may be zero, one, or more of these items in the document.  The documentation of this method states:

HRESULT item(
    VARIANT name,
    VARIANT index,
    IDispatch **pdisp
);

where

pdisp is [out, retval] Address of a pointer that receives an IDispatch interface for the object or collection if successful, or NULL otherwise.

I have been able to use this pdisp pointer to get the first of the items but I don’t know how to get the second or third, etc.  I assume that these are part of a collection but I don’t know how to get access to that collection.  Nothing I have tried works.  Any ideas?  Any sample code showing this???
0
Comment
Question by:stminfo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
_ys_ earned 1000 total points
ID: 10777754
0
 

Expert Comment

by:drjasonharrison
ID: 25202729
The URL is now broken.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question