Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where are my messages going? - *#@!ing MS! Pin
Chuck O'Toole1-Nov-11 18:36
Chuck O'Toole1-Nov-11 18:36 
AnswerRe: Where are my messages going? Pin
Roger Allen2-Nov-11 3:10
Roger Allen2-Nov-11 3:10 
AnswerRe: Where are my messages going? Mea culpa! Pin
Kyudos3-Nov-11 9:44
Kyudos3-Nov-11 9:44 
GeneralRe: Where are my messages going? Mea culpa! Pin
Chuck O'Toole4-Nov-11 4:18
Chuck O'Toole4-Nov-11 4:18 
GeneralRe: Where are my messages going? Mea culpa! Pin
Kyudos4-Nov-11 10:44
Kyudos4-Nov-11 10:44 
GeneralRe: Where are my messages going? Mea culpa! Pin
Roger Allen7-Nov-11 6:24
Roger Allen7-Nov-11 6:24 
QuestionHow to copy One XMLdocument to another? Pin
002comp31-Oct-11 23:03
002comp31-Oct-11 23:03 
AnswerRe: XmlDocument::ImportNode Pin
App_1-Nov-11 7:58
App_1-Nov-11 7:58 
XmlDocument::ImportNode does the job, It states and i quote:

"The ImportNode method is the mechanism by which a node or entire node subtree is copied from one XmlDocument to another. The node returned from the call is a copy of the node from the source document, including attribute values, the node name, node type, and all namespace-related attributes such as the prefix, local name, and namespace Uniform Resource Identifier (URI). The source document is not changed. "

more from MSDN..

Code from MSDN:

C#
#using <System.Xml.dll>

using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{

   //Create the XmlDocument.
   XmlDocument^ doc = gcnew XmlDocument;
   doc->LoadXml( "<bookstore><book genre='novel' ISBN='1-861001-57-5'><title>Pride And Prejudice</title></book></bookstore>" );

   //Create another XmlDocument which holds a list of books.
   XmlDocument^ doc2 = gcnew XmlDocument;
   doc2->Load( "books.xml" );

   //Import the last book node from doc2 into the original document.
   XmlNode^ newBook = doc->ImportNode( doc2->DocumentElement->LastChild, true );
   doc->DocumentElement->AppendChild( newBook );
   Console::WriteLine( "Display the modified XML..." );
   doc->Save( Console::Out );
}

QuestionEmbedded Systems, Asembly and C/C++ Pin
CodingLover31-Oct-11 21:04
CodingLover31-Oct-11 21:04 
AnswerRe: Embedded Systems, Asembly and C/C++ Pin
Erudite_Eric31-Oct-11 21:16
Erudite_Eric31-Oct-11 21:16 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
CodingLover31-Oct-11 21:32
CodingLover31-Oct-11 21:32 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
Erudite_Eric31-Oct-11 22:34
Erudite_Eric31-Oct-11 22:34 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
CodingLover31-Oct-11 22:58
CodingLover31-Oct-11 22:58 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
Richard MacCutchan31-Oct-11 22:35
mveRichard MacCutchan31-Oct-11 22:35 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
CodingLover31-Oct-11 22:59
CodingLover31-Oct-11 22:59 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
Erudite_Eric31-Oct-11 23:12
Erudite_Eric31-Oct-11 23:12 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
CodingLover31-Oct-11 23:47
CodingLover31-Oct-11 23:47 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
Richard MacCutchan31-Oct-11 23:27
mveRichard MacCutchan31-Oct-11 23:27 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
CodingLover31-Oct-11 23:50
CodingLover31-Oct-11 23:50 
GeneralRe: Embedded Systems, Asembly and C/C++ Pin
Richard MacCutchan1-Nov-11 0:00
mveRichard MacCutchan1-Nov-11 0:00 
AnswerRe: Embedded Systems, Asembly and C/C++ Pin
INNMorris3-Nov-11 11:23
INNMorris3-Nov-11 11:23 
QuestionSetTimer Pin
columbos1492731-Oct-11 2:49
columbos1492731-Oct-11 2:49 
AnswerRe: SetTimer Pin
David Crow31-Oct-11 3:10
David Crow31-Oct-11 3:10 
AnswerRe: SetTimer Pin
Luc Pattyn31-Oct-11 3:12
sitebuilderLuc Pattyn31-Oct-11 3:12 
AnswerRe: SetTimer Pin
Erudite_Eric31-Oct-11 3:50
Erudite_Eric31-Oct-11 3:50 

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.