Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-24 Thread Torsten Bonde Christiansen
On 2012-06-23 01:01, Daniel Gaspary wrote: On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen wrote: DDIInstance := XMLDoc.CreateElementNS('ddi:instance:3_0', 'DDIInstance'); DDIInstance.Prefix := 'ns1';// this gives me: which is great. // now I would like to expand wi

RE : [fpc-pascal] Windows Phone 8 + pascal

2012-06-24 Thread Ludo Brands
> Page http://en.wikipedia.org/wiki/Windows_RunTime > says that WinRT is a COM-based API and uses a .NET-like > metadata format. > So it is not native code after all then. I don't know why > they advertised it as native. I guess it is faster than .NET > code because it is not managed. I thought

[fpc-pascal] Codepage: UTF-8 code greater than 65535 found

2012-06-24 Thread luciano de souza
Hello all, In order to enable UTF-8 characters, I tried to use it: program dvcodepage; {$codepage UTF8} uses Sysutils; var x: integer; BEGIN writeln('Digite um número'); readln(x); writeln('O número digitado foi ', x); END. I really didn't expect errors, but I got the following output: Free

Re: [fpc-pascal] Windows Phone 8 + pascal

2012-06-24 Thread Juha Manninen
On Sun, Jun 24, 2012 at 8:57 PM, Sven Barth wrote: > I believe they'll mostly go through the WinRT, which is Microsoft's new > API pet project. > Thanks. I didn't even know about this WinRT. New technologies are appearing all the time. Page http://en.wikipedia.org/wiki/Windows_RunTime says that

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 20:38, Mattias Gaertner wrote: > On Sun, 24 Jun 2012 15:14:36 -0300 > Luiz Americo Pereira Camara wrote: >> Em 24/6/2012 12:22, Reinier Olislagers escreveu: >>> On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: >>> // Takes care of conversion... >>> S:=WideChar(StrToInt('$'+S));

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Mattias Gaertner
On Sun, 24 Jun 2012 15:14:36 -0300 Luiz Americo Pereira Camara wrote: > Em 24/6/2012 12:22, Reinier Olislagers escreveu: > > On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: > > > >> Hi, > >> > >> Thanks for your work. I plan to look at OAuth library soon > > No problems, if you have questi

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Luiz Americo Pereira Camara
Em 24/6/2012 12:22, Reinier Olislagers escreveu: On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: Hi, Thanks for your work. I plan to look at OAuth library soon No problems, if you have questions, please feel free to ask. I will About fpjson and UTF8, can you post an example showi

Re: [fpc-pascal] Windows Phone 8 + pascal

2012-06-24 Thread Sven Barth
On 24.06.2012 15:39, Juha Manninen wrote: *In a CNN news page http://edition.cnn.com/2012/06/20/tech/mobile/windows-phone-8-microsoft/index.html I found* that Windows Phone 8 will support native C code. That means it will support also native pascal code. Does anyone know how is it done in practic

[fpc-pascal] Re: encryption and decryption

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 17:30, Rainer Stratmann wrote: > Am Sunday 24 June 2012 16:59:36 schrieb leledumbo: >> key := 'testkey'; >> value := 'this is a string'; > > How is it working? > By xoring 'testkey' with 'this is a string' byte by byte? I hope not. http://en.wikipedia.org/wiki/Blowfish_%28cipher%2

Re: [fpc-pascal] Re: encryption and decryption

2012-06-24 Thread Rainer Stratmann
Am Sunday 24 June 2012 16:59:36 schrieb leledumbo: > key := 'testkey'; > value := 'this is a string'; How is it working? By xoring 'testkey' with 'this is a string' byte by byte? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

[fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: > Em 24/6/2012 07:58, Reinier Olislagers escreveu: >> >> Related: >> >> With the help of Ludo Brands - as usual ;) - I've converted the FPC >> fpjson library to return UTF8 data. >> >> I use it for my twitter/Oauthv1 library/program; you can fi

Re: [fpc-pascal] UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Luiz Americo Pereira Camara
Em 24/6/2012 07:58, Reinier Olislagers escreveu: Related: With the help of Ludo Brands - as usual ;) - I've converted the FPC fpjson library to return UTF8 data. I use it for my twitter/Oauthv1 library/program; you can find it incorporated there at https://bitbucket.org/reiniero/fpctwit/src Se

[fpc-pascal] Re: encryption and decryption

2012-06-24 Thread leledumbo
For examples, I think it's better to use the data type wrapper of the Read/Write, instead of using the low level methods: {$mode objfpc}{$H+} uses classes,blowfish; var en: TBlowFishEncryptStream; de: TBlowFishDeCryptStream; s1,s2: TStringStream; key,value,temp: String; begin key := 't

[fpc-pascal] Windows Phone 8 + pascal

2012-06-24 Thread Juha Manninen
*In a CNN news page http://edition.cnn.com/2012/06/20/tech/mobile/windows-phone-8-microsoft/index.html I found* that Windows Phone 8 will support native C code. That means it will support also native pascal code. Does anyone know how is it done in practice? Is the old WinAPI brought back? Juha *

[fpc-pascal] Writing an outlook addons in FPC

2012-06-24 Thread ik
Hello, What is require in order to develop addons for MS Outlook using FPC ? Are there any existed headers that where bind to Pascal that does it ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailm

[fpc-pascal] UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
(Cross-posted to Lazarus and FPC lists) On the Lazarus list, On 24-6-2012 10:17, Felipe Monteiro de Carvalho wrote: > Hello, > > I am using xmlread and dom from FPC to read a XML file and I got an > unpleasant surprise. > > It is converting things like this: > > ± > > Into: > > ± > > But enc