Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: monochrome bitmap Pin
l a u r e n23-Apr-02 5:06
l a u r e n23-Apr-02 5:06 
GeneralRe: monochrome bitmap Pin
Niklas L23-Apr-02 22:35
Niklas L23-Apr-02 22:35 
GeneralRe: monochrome bitmap Pin
Mike Nordell23-Apr-02 9:54
Mike Nordell23-Apr-02 9:54 
GeneralRe: monochrome bitmap Pin
Niklas L23-Apr-02 22:37
Niklas L23-Apr-02 22:37 
GeneralRe: monochrome bitmap Pin
Christian Graus23-Apr-02 10:08
protectorChristian Graus23-Apr-02 10:08 
GeneralRe: monochrome bitmap Pin
Niklas L23-Apr-02 22:27
Niklas L23-Apr-02 22:27 
GeneralRe: monochrome bitmap Pin
Niklas L23-Apr-02 22:31
Niklas L23-Apr-02 22:31 
GeneralIXMLDOMDocument/node question Pin
Christian Graus23-Apr-02 3:17
protectorChristian Graus23-Apr-02 3:17 
I have been at work for 15 hours, and I'm stuck on this - it used to work but now doesn't. Basicaaly I have an XMLDocument and it has a set of child nodes in a NodeListPtr, which I want to copy into another document, so I set through them all and use appendChild to copy them to the other document, and cloneNode(VARIANT_TRUE) to make sure I put in a deep copy. It now blows up on the appendChild call, every time that the node has come from another parent document. The docs seem to say I *can* do this, I'm sure I *have* done this ( this is old code that just stopped working ), so can anyone tell me where I am going wrong ?

The code looks something like this:

IXMLDOMNodeListPtr ptList = spDoc1->FindNode("/XML/blah"); // works OK

IXMLDOMNodePtr ptOther = spDoc2->CreateNode("/XML/location"(; // Works OK

while (ptNode = ptList->nextNode()) // works OK
{
ptCopy = ptNode->cloneNode(VARIANT_TRUE); // works OK
ptOther->appendNode(ptCopy); // This blows up, no matter how I slice & dice it
}

This is a rough idea, but the lines marked with 'works OK' work, if there's any error in my post, it's not present in my code.

Thanks.

Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
GeneralRe: IXMLDOMDocument/node question Pin
Joaquín M López Muñoz23-Apr-02 3:34
Joaquín M López Muñoz23-Apr-02 3:34 
GeneralInvalidate method Pin
Rajveer23-Apr-02 2:57
Rajveer23-Apr-02 2:57 
GeneralRe: Invalidate method Pin
Joaquín M López Muñoz23-Apr-02 3:07
Joaquín M López Muñoz23-Apr-02 3:07 
GeneralNovell Pin
Brian Delahunty23-Apr-02 2:40
Brian Delahunty23-Apr-02 2:40 
GeneralRe: Novell Pin
Joaquín M López Muñoz23-Apr-02 2:46
Joaquín M López Muñoz23-Apr-02 2:46 
GeneralRe: Novell Pin
Brian Delahunty23-Apr-02 2:59
Brian Delahunty23-Apr-02 2:59 
GeneralConversions Pin
Vis23-Apr-02 2:25
Vis23-Apr-02 2:25 
GeneralRe: Conversions Pin
Joaquín M López Muñoz23-Apr-02 2:37
Joaquín M López Muñoz23-Apr-02 2:37 
GeneralRe: Re: Conversions Pin
Vis23-Apr-02 2:44
Vis23-Apr-02 2:44 
GeneralRe: Conversions Pin
Albert Pascual23-Apr-02 6:40
sitebuilderAlbert Pascual23-Apr-02 6:40 
GeneralRe: Conversions Pin
Joaquín M López Muñoz23-Apr-02 6:43
Joaquín M López Muñoz23-Apr-02 6:43 
GeneralMinumum spanning tree Pin
Vladimir Georgiev23-Apr-02 1:00
Vladimir Georgiev23-Apr-02 1:00 
GeneralRe: Minumum spanning tree Pin
Niklas L23-Apr-02 2:00
Niklas L23-Apr-02 2:00 
GeneralRe: Minumum spanning tree Pin
Joaquín M López Muñoz23-Apr-02 2:08
Joaquín M López Muñoz23-Apr-02 2:08 
GeneralIs that correct?! Pin
Deian23-Apr-02 0:24
Deian23-Apr-02 0:24 
GeneralRe: Is that correct?! Pin
Christian Graus23-Apr-02 0:58
protectorChristian Graus23-Apr-02 0:58 
GeneralBringing modeless dialogs to background Pin
Hans Ruck22-Apr-02 23:54
Hans Ruck22-Apr-02 23:54 

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.