Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Serial Communication Pin
Ryan Binns1-Mar-06 17:17
Ryan Binns1-Mar-06 17:17 
GeneralRe: Serial Communication Pin
David Crow2-Mar-06 3:11
David Crow2-Mar-06 3:11 
QuestionIHttpNegotiate BeginningTransaction Pin
acroitor1-Mar-06 8:03
acroitor1-Mar-06 8:03 
QuestionHow to realize a textbox in client area? Pin
xyhan1-Mar-06 7:10
xyhan1-Mar-06 7:10 
QuestionRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 9:09
David Crow1-Mar-06 9:09 
AnswerRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 9:55
xyhan1-Mar-06 9:55 
QuestionRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 10:30
David Crow1-Mar-06 10:30 
AnswerRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 10:46
xyhan1-Mar-06 10:46 
GeneralRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 10:55
David Crow1-Mar-06 10:55 
GeneralRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 12:20
xyhan1-Mar-06 12:20 
GeneralRe: How to realize a textbox in client area? Pin
David Crow2-Mar-06 3:15
David Crow2-Mar-06 3:15 
AnswerRe: How to realize a textbox in client area? Pin
Nish Nishant1-Mar-06 11:19
sitebuilderNish Nishant1-Mar-06 11:19 
QuestionEOF for cygwin executable? Pin
9ine1-Mar-06 6:00
9ine1-Mar-06 6:00 
AnswerRe: EOF for cygwin executable? Pin
Dan McCormick1-Mar-06 7:32
Dan McCormick1-Mar-06 7:32 
GeneralRe: EOF for cygwin executable? Pin
9ine1-Mar-06 22:18
9ine1-Mar-06 22:18 
GeneralRe: EOF for cygwin executable? Pin
Dan McCormick2-Mar-06 1:33
Dan McCormick2-Mar-06 1:33 
GeneralRe: EOF for cygwin executable? Pin
9ine2-Mar-06 5:02
9ine2-Mar-06 5:02 
AnswerRe: EOF for cygwin executable? Pin
Ryan Binns1-Mar-06 17:19
Ryan Binns1-Mar-06 17:19 
GeneralRe: EOF for cygwin executable? Pin
9ine1-Mar-06 22:15
9ine1-Mar-06 22:15 
GeneralRe: EOF for cygwin executable? Pin
Ryan Binns1-Mar-06 22:50
Ryan Binns1-Mar-06 22:50 
GeneralRe: EOF for cygwin executable? Pin
9ine1-Mar-06 23:38
9ine1-Mar-06 23:38 
QuestioncFile assert Pin
act_x1-Mar-06 5:58
act_x1-Mar-06 5:58 
AnswerRe: cFile assert Pin
David Crow1-Mar-06 6:58
David Crow1-Mar-06 6:58 
AnswerRe: cFile assert Pin
Joe Woodbury1-Mar-06 10:45
professionalJoe Woodbury1-Mar-06 10:45 
QuestionInitializing IXMLDOMTextPtr Pin
hanno251-Mar-06 5:26
hanno251-Mar-06 5:26 
I will change an the content of a node in a XML-File. It is no problem, to get the specific node and its content. But to change the content of the Node I have to use the function "InsertData" from the class IXMLDOMText. Therefor I have to initialize the IXMLDOMTextPtr. But every time I try this, I get the error message, that the left part of ->"Query Interface" has to point to a class... So what's wrong with that?
Below the pasted code to make it a little bit more understandable.

Thanks, Hanno



CString fileName;
CFileFind find;
BOOL findFile;

IXMLDOMDocument m_iDocPtr;
IXMLDOMNodePtr m_iNodePtr;
IXMLDOMTextPtr m_iTextPtr;

findFile = (find.FindFile(strPath+"\\"+"*.xml",0));
while(findFile != 0) {
fileName = find.GetFilePath();
m_iDocPtr->Load((_bstr_t)fileName);
m_iFr = m_iDocPtr->createDocumentFragment();
m_iNodePtr = m_iDocPtr->selectSingleNode("//HI");

m_iNodePtr = m_iNodePtr->selectSingleNode("//Hello");
_bstr_t hello= m_iNodePtr->text;
if (atoi(hello) == 0) {
m_iTextPtr = m_iDocPtr->createTextNode("something");
m_iTextPtr->insertData(2,"something");
}
}

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.