Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Regarding Record to MoveFirst,MoveLast and Move Previous. Pin
David Crow15-Oct-09 6:43
David Crow15-Oct-09 6:43 
AnswerRe: Regarding Record to MoveFirst,MoveLast and Move Previous. Pin
CPallini15-Oct-09 6:46
mveCPallini15-Oct-09 6:46 
GeneralRe: Regarding Record to MoveFirst,MoveLast and Move Previous. Pin
janaswamy uday15-Oct-09 8:08
janaswamy uday15-Oct-09 8:08 
QuestionRe: Regarding Record to MoveFirst,MoveLast and Move Previous. Pin
David Crow15-Oct-09 8:31
David Crow15-Oct-09 8:31 
AnswerRe: Regarding Record to MoveFirst,MoveLast and Move Previous. Pin
Rudheesh15-Oct-09 21:07
Rudheesh15-Oct-09 21:07 
GeneralRe: Regarding Record to MoveFirst,MoveLast and Move Previous. Pin
Rajesh R Subramanian15-Oct-09 8:50
professionalRajesh R Subramanian15-Oct-09 8:50 
GeneralRe: Regarding Record to MoveFirst,MoveLast and Move Previous. Pin
CPallini15-Oct-09 8:55
mveCPallini15-Oct-09 8:55 
QuestionSpinButtonCtrl not working Pin
A&Ms15-Oct-09 4:12
A&Ms15-Oct-09 4:12 
AnswerRe: SpinButtonCtrl not working Pin
Rajesh R Subramanian15-Oct-09 5:24
professionalRajesh R Subramanian15-Oct-09 5:24 
Questionhow to write a display program or a reader program?? Pin
mr bard215-Oct-09 1:50
mr bard215-Oct-09 1:50 
AnswerRe: how to write a display program or a reader program?? Pin
Cedric Moonen15-Oct-09 1:54
Cedric Moonen15-Oct-09 1:54 
GeneralRe: how to write a display program or a reader program?? Pin
mr bard215-Oct-09 2:36
mr bard215-Oct-09 2:36 
GeneralRe: how to write a display program or a reader program?? Pin
Cedric Moonen15-Oct-09 2:45
Cedric Moonen15-Oct-09 2:45 
AnswerRe: how to write a display program or a reader program?? Pin
Richard MacCutchan15-Oct-09 2:09
mveRichard MacCutchan15-Oct-09 2:09 
QuestionRe: how to write a display program or a reader program?? Pin
David Crow15-Oct-09 3:17
David Crow15-Oct-09 3:17 
AnswerRe: how to write a display program or a reader program?? Pin
Rajesh R Subramanian15-Oct-09 3:43
professionalRajesh R Subramanian15-Oct-09 3:43 
QuestionIHTMLDocument2 for Table Par [modified] Pin
NaveenHS15-Oct-09 1:19
NaveenHS15-Oct-09 1:19 
AnswerRe: IHTMLDocument2 for Table Par Pin
«_Superman_»15-Oct-09 6:40
professional«_Superman_»15-Oct-09 6:40 
GeneralRe: IHTMLDocument2 for Table Par Pin
NaveenHS16-Oct-09 1:06
NaveenHS16-Oct-09 1:06 
GeneralRe: IHTMLDocument2 for Table Par Pin
«_Superman_»16-Oct-09 5:01
professional«_Superman_»16-Oct-09 5:01 
GeneralRe: IHTMLDocument2 for Table Par Pin
NaveenHS19-Oct-09 1:02
NaveenHS19-Oct-09 1:02 
Hello Sir,

Thanks a lot for the reply.

I made changes as mentioned by you, but still i am not able to extract the data from the table. can u please tell what change i have to make.


                MSHTML::IHTMLDocument2Ptr pDoc;
		MSHTML::IHTMLDocument3Ptr pDoc3;
		MSHTML::IHTMLElementCollectionPtr pCollection;
		MSHTML::IHTMLElementPtr pElement;

HRESULT hr = CoCreateInstance(CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER, 
			IID_IHTMLDocument2, (void**)&pDoc);

pDoc3 = pDoc;

		pDoc->get_all(&pCollection);

		pCollection = pDoc3->getElementsByTagName(L"table");

		
		for(long i=0; i<pCollection->length; i++){
			pElement = pCollection->item(i, (long)0);
			if(pElement != NULL){
				m_wndLinksList.AddString((LPCTSTR)bstr_t(pElement->getAttribute("table"),10));
			}
		}


Error :- error C2660: 'MSHTML::IHTMLElement::getAttribute' : function does not take 1 arguments
GeneralRe: IHTMLDocument2 for Table Par Pin
«_Superman_»19-Oct-09 5:32
professional«_Superman_»19-Oct-09 5:32 
GeneralRe: IHTMLDocument2 for Table Par Pin
NaveenHS20-Oct-09 2:21
NaveenHS20-Oct-09 2:21 
QuestionC++ Pin
john curtin14-Oct-09 23:46
john curtin14-Oct-09 23:46 
AnswerRe: C++ Pin
Richard MacCutchan15-Oct-09 0:00
mveRichard MacCutchan15-Oct-09 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.