[fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Graeme Geldenhuys
Hi, Part of creating a new cross-platform installer application, I'm trying to read an XML file that contains UTF-8 characters, but I get the following error. Unicode support is very important, because the setup program must support multiple languages. Does this mean the XML implementation in FPC

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Michael Van Canneyt
On Tue, 2 Feb 2010, Graeme Geldenhuys wrote: Hi, Part of creating a new cross-platform installer application, I'm trying to read an XML file that contains UTF-8 characters, but I get the following error. Unicode support is very important, because the setup program must support multiple langua

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: > > > > And you must of course make sure the contents match the header :-) Missing encoding and wrong content encoding was my problem. Oops! :) Thanks for the help, it's working now. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Lee Jenkins
Michael Van Canneyt wrote: On Tue, 2 Feb 2010, Graeme Geldenhuys wrote: Hi, Part of creating a new cross-platform installer application, I'm trying to read an XML file that contains UTF-8 characters, but I get the following error. Unicode support is very important, because the setup progra

[fpc-pascal] C# implementation of TObject Dispatch/DefaultHandler

2010-02-02 Thread Anthony Walter
I though I'd share this and as for any feedback. Today I was experimenting with a borrowing a Delphi concept and implementing it in C#. I wanted to be able to do this in C#: procedure WMMouseMove(var Message: TWMMouseMove); message WM_MOUSEMOVE; And I believe I came up with a similar yet workabl

Re: [fpc-pascal] C# implementation of TObject Dispatch/DefaultHandler

2010-02-02 Thread Jonas Maebe
On 02 Feb 2010, at 17:49, Anthony Walter wrote: > I though I'd share this and as for any feedback. Since this does not appear to be about programming in FPC (nor about interoperating with FPC/Delphi code), the fpc-other mailing list would be more appropriate for this discussion. Please post fo

[fpc-pascal] daemon error, arm-linux

2010-02-02 Thread Евгений Семенов (Evgeniy Sem enov)
Hello, can anybody tell me what's a problem. When I start my daemon on first machine that have 'arm' processor, it's successfully running, but on other machine that have same cpu it fail. On first machine 'uname -m' return: "armv5tejl" On second 'uname -m' return: "armv5tel" Second machine erro

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread cobines
2010/2/2 Lee Jenkins : > Isn't it supposed to assume utf-8 if no encoding processing instruction is > present in the XML doc?  I thought I read that somewhere... It is supposed to look at "encoding" value, then BOM and if both are not present assume UTF-8. -- cobines _

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Graeme Geldenhuys
On 2 February 2010 23:51, cobines wrote: > > It is supposed to look at "encoding" value, then BOM and if both are > not present assume UTF-8. That did not work for me, hence this message thread. -- Regards, - Graeme - ___ fpGUI - a cross-platfo

Re: [fpc-pascal] C# implementation of TObject Dispatch/DefaultHandler

2010-02-02 Thread Graeme Geldenhuys
On 2 February 2010 18:49, Anthony Walter wrote: > I though I'd share this and as for any feedback. Wrong mailing list, this list is about Object Pascal. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.

[fpc-pascal] Help converting C code

2010-02-02 Thread leledumbo
Does the BlockRead below: type TRGBQuad = record rgbBlue: GLubyte; rgbGreen: GLubyte; rgbRed: GLubyte; rgbReserved: GLubyte; end; ... var FileHandle: File; BytesRead: GLuint; FColorPalette: PRGBQuad; NumberOfColours: GLuint; ... BlockRead(FileHandle,FColorPalette^,

Re: [fpc-pascal] Help converting C code

2010-02-02 Thread Michael Van Canneyt
On Tue, 2 Feb 2010, leledumbo wrote: Does the BlockRead below: type TRGBQuad = record rgbBlue: GLubyte; rgbGreen: GLubyte; rgbRed: GLubyte; rgbReserved: GLubyte; end; ... var FileHandle: File; BytesRead: GLuint; FColorPalette: PRGBQuad; NumberOfColours: GLuint; ... Bloc