Menu

What's wrong with "LoadFile"?

Developer
Allen
2006-09-13
2013-05-20
  • Allen

    Allen - 2006-09-13

    something weird, when i use the API LoadFile, it returns false, but actually the file is exist, struggle for it a long time, still can't resolve it. Is there anyone come across the same problem?
    Help, thx.

     
    • Allen

      Allen - 2006-09-13

      OK, I have resolved it, a little harder.
      The format of my XML file didn't correct,
      because i have ever add a mutibyte such as Chinese character, and it takes two bytes, and if it is odd, like this:
      <Categories>国际, 假日, 礼物</Categories>,
      it's invalid, only can i add a blank after the Chinese characters, like:
      <Categories>国际, 假日, 礼物 </Categories>

      I don't know if it is the TinyXML's bug,
      please pay attenation to it.

       
    • Allen

      Allen - 2006-09-14

      just add encoding GB2312, can also resolve it.
      my mistake.

       

Log in to post a comment.