View Single Post
Old 04-10-2007, 02:46 AM   #37
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Quote:
Originally Posted by esperanc
This returns an error code 11 (the number of chars in the string?).
xylog.XYP_SetXmlFileName(ur"C:\test.lrs")
Things I'd check:

1. Does that ur mean "16 bit character string with a 0 character at the end of the string?
2. Where did test.lrs come from? Are you using one of the sample projects provided by Sony? Is the path for the required CThumbnail correct? I'm also pretty sure the LRS file has to be in UTF-16LE with the 16 bit marker character 0xfffe as the first character. I don't think it will eat UTF-8 even if that encoding is set in the XML marker e.g. 'encoding="UTF-8"?>' isn't respected.
3. If you can setup the MsgID and MsgWnd you might get better error messages.
scotty1024 is offline   Reply With Quote