Re: [fpc-pascal] UTF8Decode -- string length

2010-05-11 Thread spir ☣
On Tue, 11 May 2010 09:15:46 +0200 Graeme Geldenhuys wrote: > In that case the FPC documentation is wrong. Then could you correct the ref > documentation please - Section 3.2.5. As quoted below, the docs say > WideString is reference counted. > > > --[ FPC 2.4 language reference doc ]--

Re: [fpc-pascal] UTF8Decode

2010-05-11 Thread Michael Van Canneyt
On Tue, 11 May 2010, Graeme Geldenhuys wrote: Michael Van Canneyt het geskryf: I am pretty sure it is the other way around, UnicodeString is the unicode version of AnsiString and is thus reference counted. WideString is the OLEstring compatible string, and is not reference counted. Correct.

Re: [fpc-pascal] UTF8Decode

2010-05-11 Thread Graeme Geldenhuys
Michael Van Canneyt het geskryf: >> I am pretty sure it is the other way around, UnicodeString is the unicode >> version of AnsiString and is thus reference counted. WideString is the >> OLEstring compatible string, and is not reference counted. > > Correct. In that case the FPC documentation i

Re: [fpc-pascal] UTF8Decode

2010-05-11 Thread Graeme Geldenhuys
Vincent Snijders het geskryf: > > I am pretty sure it is the other way around, UnicodeString is the > unicode version of AnsiString and is thus reference counted. WideString > is the OLEstring compatible string, and is not reference counted. My mistake... only made my first cup of coffee now.

Re: [fpc-pascal] UTF8Decode

2010-05-11 Thread Michael Van Canneyt
On Tue, 11 May 2010, Vincent Snijders wrote: Graeme Geldenhuys schreef: Luis Fernando Del Aguila Mejía het geskryf: Why WideString is not equal to Unicodestring in Windows? WideString is reference counted (for Windows COM reasons). UnicodeString is pretty much the same as WideString, but

Re: [fpc-pascal] UTF8Decode

2010-05-11 Thread Vincent Snijders
Graeme Geldenhuys schreef: Luis Fernando Del Aguila Mejía het geskryf: Why WideString is not equal to Unicodestring in Windows? WideString is reference counted (for Windows COM reasons). UnicodeString is pretty much the same as WideString, but not reference counted. I am pretty sure it is

Re: [fpc-pascal] UTF8Decode

2010-05-10 Thread Graeme Geldenhuys
Luis Fernando Del Aguila Mejía het geskryf: > > Why WideString is not equal to Unicodestring in Windows? WideString is reference counted (for Windows COM reasons). UnicodeString is pretty much the same as WideString, but not reference counted. Regards, - Graeme - -- fpGUI Toolkit - a cro

Re: [fpc-pascal] UTF8Decode

2010-05-10 Thread Luis Fernando Del Aguila Mejía
Ok, thanks. But I'm writing a book about FreePascal in Spanish (http://www.conoce3000.com/html/espaniol/Libros/PascalConFreePascal/Indice.html). And I do not want to write something to discourage the use of the compiler. I apologize if my questions are a bit uncomfortable. Why WideString is not

Re: [fpc-pascal] UTF8Decode

2010-05-10 Thread Jonas Maebe
On 10 May 2010, at 23:25, Luis Fernando Del Aguila Mejía wrote: > When compiling this program http://www.conoce3000.com/Test.pp in Windows > receive the following error: > Test.pp(4,11) Error: Can't determine which overloaded function to call > The problem only happens when I use a utf8 characte

[fpc-pascal] UTF8Decode

2010-05-10 Thread Luis Fernando Del Aguila Mejía
When compiling this program http://www.conoce3000.com/Test.pp in Windows receive the following error: Test.pp(4,11) Error: Can't determine which overloaded function to call The problem only happens when I use a utf8 character. What am I doing wrong? In Linux, the program compile OK. _