Hey,
I've been trying to get TinyXML to work in my project. Unfortunately I cannot get even a simple test app to run. Rather, it likes to crash any program I put it in. Please, could somebody tell me what is wrong with the simple program below?
The XML file looks like this:
<?xml version="1.0" encoding="utf-8"?><config><!--This is a config file--><Inputkeys="WASD"/></config>
i know this might be a little obvious but did you try just loading a simple xml document using tinyxml and not involving the windows api? maybe something at the console like:
Hello everyone !!
I'm a beginner and I've just download tinyxml.
How can I get one information between the tags in order to put it in my structure please ?
thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-01-02
Hey all,
Thanks for your suggestions. After playing around with it for ages I got the code below to work. It's very similar to the first one and I can't figure out why this one is better, but it is, so hopefully it will help somebody. I'm using the same code as above but with this replacement:
Hey,
I've been trying to get TinyXML to work in my project. Unfortunately I cannot get even a simple test app to run. Rather, it likes to crash any program I put it in. Please, could somebody tell me what is wrong with the simple program below?
The XML file looks like this:
My C++ source looks like this:
What I get is this:
And then this:
I'm using the latest version of MinGW, and everything compiles+links without warning or error.
Thanks everyone!
are those pointer variables instantiated and valid?
i know this might be a little obvious but did you try just loading a simple xml document using tinyxml and not involving the windows api? maybe something at the console like:
you shouldn't have any problems with this if your tinyxml files are correct.
Thanks a lot, that resolved my C source =))
Hello everyone !!
I'm a beginner and I've just download tinyxml.
How can I get one information between the tags in order to put it in my structure please ?
thank you
Hey all,
Thanks for your suggestions. After playing around with it for ages I got the code below to work. It's very similar to the first one and I can't figure out why this one is better, but it is, so hopefully it will help somebody. I'm using the same code as above but with this replacement: