C++ msxml tutorials
-
here are two great links for beginning DOM programming in C++: http://codeguru.earthweb.com/xml/XMLDOMFromVC.html - a basic, great tutorial microsoft http://msdn.microsoft.com/Downloads/samples/Internet/ select xml, and I think the MFC tree control is the XMLTree simple application.
-
here are two great links for beginning DOM programming in C++: http://codeguru.earthweb.com/xml/XMLDOMFromVC.html - a basic, great tutorial microsoft http://msdn.microsoft.com/Downloads/samples/Internet/ select xml, and I think the MFC tree control is the XMLTree simple application.
Thanks Todd! The first one is mine :) I've never posted it here because it wrote it so long ago that I figured it was probably too beginner-level at this point. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
-
Thanks Todd! The first one is mine :) I've never posted it here because it wrote it so long ago that I figured it was probably too beginner-level at this point. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
Tom, I don't suppose you have any idea what my problem is with appendChild not working ? I posted the question above this one, and I'm kinda desperate ... :-O 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
-
Tom, I don't suppose you have any idea what my problem is with appendChild not working ? I posted the question above this one, and I'm kinda desperate ... :-O 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
I'll look now... Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
-
Tom, I don't suppose you have any idea what my problem is with appendChild not working ? I posted the question above this one, and I'm kinda desperate ... :-O 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
By the way, Christopher is all impressed with himself that you're quoting him in your sig :) Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
-
here are two great links for beginning DOM programming in C++: http://codeguru.earthweb.com/xml/XMLDOMFromVC.html - a basic, great tutorial microsoft http://msdn.microsoft.com/Downloads/samples/Internet/ select xml, and I think the MFC tree control is the XMLTree simple application.
Actually, I've updated that tutorial a great deal for an XML chapters I just did for my MFC book. I'll post it some time this weekend. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
-
Thanks Todd! The first one is mine :) I've never posted it here because it wrote it so long ago that I figured it was probably too beginner-level at this point. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
you know, I've had so much trouble with path syntax and checking if GetNode type statements returned null or not, that I started putting together my own short list of XML "stuff", but it hasn't really evolved into a useful tutorial. The hardest thing for me is still that "I just want to get data out like it was Access or a *.ini file, or a flat file", and the XML DOM sometimes seems to make what should be easy , difficult. (once it works it is fantastic) Your tutorial was very helpful to me and my current project - I started out attempting something like what was in C++ Journal in the January issue , where I specify all the structs/variables for our project in XML, and then I generate the C++ code from that, I generate the C++ code in to read all the variables and populate the structs from the XML file, I change an MFC dialog on the fly to get or set variables in the data in my config screen. I started thinking at the beginning - here I have these different ways of formatting what is essentially the same data - I have C++ code, I have *.h include files, I need *.ini files, I need to edit my MFC dialog - why can't I just feed it all off the XML and use that to unify these various data structures? I got it working, but explaining it to our engineers has got me to back off from trying to force them to use the generating features. But it is still very handy to have C++ code plus the min/max validation data, the comments that explain what that variable is, the list of potential values, etc. all in one place. Someday somebody is going to make some money by providing a tool where we can specify data in XML, because when a guy creates a new variable, if he knows what the max/min values are to be, wouldn't be great if he could spell all that out in one place, and then it would be useable in his program, and all the other developers were doing the same thing, and multiple variables weren't created for the same purpose, etc. Oh well, sorry for the long text. I could not live without the tutorials at CodeGuru and CodeProject (at least as a Windows/MFC developer). Your tutorial was very easy to understand and helpful. :laugh:
-
By the way, Christopher is all impressed with himself that you're quoting him in your sig :) Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
Tom Archer wrote: By the way, Christopher is all impressed with himself that you're quoting him in your sig I wanted to as soon as he said it, but I'd only just changed it, so I kept Jamies comment for a bit, then went back in the posts to find this one again. 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
-
By the way, Christopher is all impressed with himself that you're quoting him in your sig :) Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
Tom Archer wrote: By the way, Christopher is all impressed with himself that you're quoting him in your sig Hey, I've gotta find somebody that's impressed with me, and I was closest... Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)
-
you know, I've had so much trouble with path syntax and checking if GetNode type statements returned null or not, that I started putting together my own short list of XML "stuff", but it hasn't really evolved into a useful tutorial. The hardest thing for me is still that "I just want to get data out like it was Access or a *.ini file, or a flat file", and the XML DOM sometimes seems to make what should be easy , difficult. (once it works it is fantastic) Your tutorial was very helpful to me and my current project - I started out attempting something like what was in C++ Journal in the January issue , where I specify all the structs/variables for our project in XML, and then I generate the C++ code from that, I generate the C++ code in to read all the variables and populate the structs from the XML file, I change an MFC dialog on the fly to get or set variables in the data in my config screen. I started thinking at the beginning - here I have these different ways of formatting what is essentially the same data - I have C++ code, I have *.h include files, I need *.ini files, I need to edit my MFC dialog - why can't I just feed it all off the XML and use that to unify these various data structures? I got it working, but explaining it to our engineers has got me to back off from trying to force them to use the generating features. But it is still very handy to have C++ code plus the min/max validation data, the comments that explain what that variable is, the list of potential values, etc. all in one place. Someday somebody is going to make some money by providing a tool where we can specify data in XML, because when a guy creates a new variable, if he knows what the max/min values are to be, wouldn't be great if he could spell all that out in one place, and then it would be useable in his program, and all the other developers were doing the same thing, and multiple variables weren't created for the same purpose, etc. Oh well, sorry for the long text. I could not live without the tutorials at CodeGuru and CodeProject (at least as a Windows/MFC developer). Your tutorial was very easy to understand and helpful. :laugh:
Todd.Harvey wrote: I just want to get data out like it was Access or a *.ini file, or a flat file", and the XML DOM sometimes seems to make what should be easy , difficult Now that's an understatement :) Todd.Harvey wrote: Your tutorial was very easy to understand and helpful Thanks! I'll give some thought to your other remarks as you might be onto something there... Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.