Click here to Skip to main content
15,877,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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");
}
}
QuestionMultiDocTemplate initialization question Pin
camoguard1-Mar-06 5:00
camoguard1-Mar-06 5:00 
AnswerRe: MultiDocTemplate initialization question Pin
camoguard1-Mar-06 5:31
camoguard1-Mar-06 5:31 
QuestionHowto make a system modal application Pin
whatever891-Mar-06 4:46
whatever891-Mar-06 4:46 
AnswerRe: Howto make a system modal application Pin
David Crow1-Mar-06 5:32
David Crow1-Mar-06 5:32 
QuestionHow show a Bitmap Pin
Alfius791-Mar-06 4:20
Alfius791-Mar-06 4:20 
AnswerRe: How show a Bitmap Pin
Hamid_RT1-Mar-06 4:25
Hamid_RT1-Mar-06 4:25 
GeneralRe: How show a Bitmap Pin
Alfius791-Mar-06 4:30
Alfius791-Mar-06 4:30 
QuestionRe: How show a Bitmap Pin
David Crow1-Mar-06 4:27
David Crow1-Mar-06 4:27 
AnswerRe: How show a Bitmap Pin
Alfius791-Mar-06 21:05
Alfius791-Mar-06 21:05 
GeneralRe: How show a Bitmap Pin
David Crow2-Mar-06 3:09
David Crow2-Mar-06 3:09 
GeneralRe: How show a Bitmap Pin
Alfius792-Mar-06 5:06
Alfius792-Mar-06 5:06 
Questionmix code Vc++ Pin
_tasleem1-Mar-06 4:07
_tasleem1-Mar-06 4:07 
QuestionTypecast _bstr_t to int? Pin
hanno251-Mar-06 3:53
hanno251-Mar-06 3:53 
QuestionRe: Typecast _bstr_t to int? Pin
David Crow1-Mar-06 4:01
David Crow1-Mar-06 4:01 
AnswerRe: Typecast _bstr_t to int? Pin
walter761-Mar-06 4:29
walter761-Mar-06 4:29 
GeneralRe: Typecast _bstr_t to int? Pin
hanno251-Mar-06 5:23
hanno251-Mar-06 5:23 
Questionwhat is IDR_MAINFRAME? Pin
derek71-Mar-06 3:33
derek71-Mar-06 3:33 

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.