Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrXML
file path error

ebyard
Registered User
Quote
2011-06-22 11:20:26

Hi

I've been using irrXML for ages now, and it works perfectly. But I found a strange problem which I cannot explain.

In my XML file I have a path to a file on my system, I extract the "file" attribute to a string and use that to load the PNG, like this:

file='..\\images\\myfile.png' - this does not work (the file is not found by the loading function).

I know the path is 100% OK, I even checked it at a command prompt.

The following line works OK (but I cannot use it, of course, as not everyone installs the game to the same directory).

file='C:\\Projects\\TestProject\\images\\myfile.png'

Why??

I hope someone can help!

Thanks


niko
Moderator
Quote
2011-06-22 18:01:57

Maybe your working directory isn't what you are expecting it to be?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact