[fpc-pascal] How to use ExtTextOut with Printer.Canvas.Handle on Gtk2

2010-11-10 Thread Fred Flinestone
Hello all, When I use ExtTextOut with Printer.Canvas.Handle then function ends because of not valid DC and nothing is written to Canvas. I know that there os TextOut which works, but I need to use TextOut with definition of character positions. How can I create device context to get ExtTextOut wo

Re: [fpc-pascal] Unable to compile JSON SuperObject on FPC 2.5.1

2010-11-10 Thread Fred Flinestone
Thanks. On Wed, Nov 10, 2010 at 11:56 AM, Jonas Maebe wrote: > > On 10 Nov 2010, at 11:48, Fred Flinestone wrote: > >> not it stopped to write the error for _AddRef and _Release, but to >> QueryInterface is still the same error present. >> >> W

[fpc-pascal] Unable to compile JSON SuperObject on FPC 2.5.1

2010-11-10 Thread Fred Flinestone
Hello all, I am not able to compile JSON – SuperObject where compiler says this: .../superobject.pas(135,18) Error: No matching implementation for interface method "IUnknown.QueryInterface(constref TGuid,out ):LongInt; CDecl;" found .../superobject.pas(135,18) Error: No matching implementation fo

Re: [fpc-pascal] TReader.ReadProperty

2010-11-03 Thread Fred Flinestone
On Wed, Nov 3, 2010 at 9:17 AM, Michael Van Canneyt wrote: > You must recompile the RTL with debug information, and then recompile your > project. > > I am using Ubuntu 10.04 with create_fpc_deb.sh script to get FPC DEB package and this script doesn't have option to set OPT=-gl to build debug ve

[fpc-pascal] TReader.ReadProperty

2010-11-02 Thread Fred Flinestone
hi all, i am trying to replace the code from delphi to fpc where the code looks like: TYPE THackReader =class(TReader); ... FReaderStream.Position := 0; {$IFDEF FPC} try FReader.ReadListBegin; while not FReader.EndOfList do begin THackReader(FReader).ReadProperty