if(SUCCEEDED(h))
{
IHTMLElementCollection * pColl = NULL;
h = pDoc->get_all(&pColl);
if(SUCCEEDED(h)&&pColl!=NULL)
{
long lcount = 0;
pColl->get_length(&lcount);
for(int i=0;i<lcount;i++)
{
VARIANT index;
index.vt = VT_I4;
index.intVal = i;
IDispatch * pTableDisp = NULL;
pColl->item(index,index,&pTableDisp);
if(pTableDisp!=NULL)
{
//取得了element ,同时想知道他的位置