If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Cleves
Posts: 224 Joined: Mon Sep 08, 2003 6:40 pm
Post
by Cleves » Fri Nov 30, 2007 2:40 pm
I'm trying to create a simple XML reader but something is wrong.
I create a reader:
Code: Select all
IrrXMLReader* XmlReaderMenus = createIrrXMLReader("menus.xml");
if(XmlReaderMenus == 0)
printf("Init of XML Reader has failed.\n");
But it always fails, no matter what. I know for sure that the xml is there, and that it's correct format.
Code: Select all
<?xml version="1.0" ?>
- <menus>
<element id="100">Strength</element>
</menus>
Any idea what may be wrong?
Acki
Posts: 3496 Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:
Post
by Acki » Fri Nov 30, 2007 6:57 pm
I'm not sure, because I don't use the Irrlicht XML reader, but don't you need the file system ???
Code: Select all
IrrXMLReader* XmlReaderMenus = device->getFileSystem()->createIrrXMLReader("menus.xml");
ultran00b
Posts: 35 Joined: Tue Oct 30, 2007 3:30 pm
Post
by ultran00b » Fri Nov 30, 2007 7:25 pm
No Acki, Ambiera has a code example that shows how to do this, and you don't need the filesystem.
Use the debugger, young Skywalker...
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Fri Nov 30, 2007 10:23 pm
But you need Irrlicht 1.4 for a proper dll export of the symbols under Windows. however, this would prevent linking the app already. And I guess it fails during runtime!? Then it's a job for a debugger...