Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
SandipG 22-Oct-09 2:44
SandipG 22-Oct-09 2:44 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
Covean22-Oct-09 2:48
Covean22-Oct-09 2:48 
GeneralHow do you interpret the results (I have provided my comments) Pin
__yash__22-Oct-09 2:35
professional__yash__22-Oct-09 2:35 
GeneralRe: How do you interpret the results (I have provided my comments) Pin
SandipG 22-Oct-09 2:45
SandipG 22-Oct-09 2:45 
GeneralRe: How do you interpret the results (I have provided my comments) Pin
Covean22-Oct-09 2:45
Covean22-Oct-09 2:45 
AnswerRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
David Crow22-Oct-09 2:55
David Crow22-Oct-09 2:55 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
__yash__22-Oct-09 20:52
professional__yash__22-Oct-09 20:52 
QuestionText from the Html Table tag. Pin
NaveenHS22-Oct-09 1:09
NaveenHS22-Oct-09 1:09 
Hello Everyone,

i am trying to Extract the Contents of the HTML page from the Table Tag.


Till now i have done with identifying the Table tag from the Html Page.
but still i am not able to extract the data from the table tag.
can anyone please help me with this.

I am getting the output as 0.

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);
		
// psa has the html page contents 
		
hr = pDoc->write(psa);
hr = pDoc->close();
		

pDoc3 = pDoc;
		
pDoc->get_all(&pCollection);
pCollection = pDoc3->getElementsByTagName("table");

BSTR itxt;

for(long i=0; i<pCollection->length; i++){
pElement = pCollection->item(i, (long)0);
if(pElement != NULL){
					m_wndLinksList.AddString((LPCTSTR)bstr_t(pEle->get_innerText(&itxt)));
}
}

QuestionRe: Text from the Html Table tag. Pin
David Crow22-Oct-09 3:08
David Crow22-Oct-09 3:08 
Questionhow to use lpfnhook to keep view of dialog? Pin
002comp21-Oct-09 23:11
002comp21-Oct-09 23:11 
QuestionRe: how to use lpfnhook to keep view of dialog? Pin
CPallini21-Oct-09 23:40
mveCPallini21-Oct-09 23:40 
AnswerRe: how to use lpfnhook to keep view of dialog? Pin
002comp22-Oct-09 0:04
002comp22-Oct-09 0:04 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
CPallini22-Oct-09 0:17
mveCPallini22-Oct-09 0:17 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
002comp22-Oct-09 0:30
002comp22-Oct-09 0:30 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
CPallini22-Oct-09 0:41
mveCPallini22-Oct-09 0:41 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
Michael Schubert22-Oct-09 0:54
Michael Schubert22-Oct-09 0:54 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
Richard MacCutchan22-Oct-09 1:40
mveRichard MacCutchan22-Oct-09 1:40 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
David Crow22-Oct-09 3:10
David Crow22-Oct-09 3:10 
Questionexpression evaluation problem Pin
fcis200821-Oct-09 23:05
fcis200821-Oct-09 23:05 
AnswerRe: expression evaluation problem Pin
Rajesh R Subramanian21-Oct-09 23:15
professionalRajesh R Subramanian21-Oct-09 23:15 
GeneralRe: expression evaluation problem Pin
Michael Schubert22-Oct-09 0:32
Michael Schubert22-Oct-09 0:32 
GeneralRe: expression evaluation problem Pin
CPallini22-Oct-09 0:54
mveCPallini22-Oct-09 0:54 
GeneralRe: expression evaluation problem Pin
Michael Schubert22-Oct-09 0:55
Michael Schubert22-Oct-09 0:55 
GeneralRe: expression evaluation problem Pin
CPallini22-Oct-09 1:42
mveCPallini22-Oct-09 1:42 
GeneralRe: expression evaluation problem Pin
Michael Schubert22-Oct-09 1:49
Michael Schubert22-Oct-09 1:49 

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.