Re: [fpc-pascal] Casting descendant interface variables to base

2011-01-30 Thread cobines
OK, I understand now. Thank you for explanation. -- cobines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Casting descendant interface variables to base

2011-01-30 Thread Andrew Hall
On 30 Jan 11, at 22:28 , cobines wrote: > it is now a pointer to IBaseInterface, because of implicit QueryInterface? The reference changes because you have explicitly cast (the implementing object) to another interface. > So, I think I can compare interface variables but first I have to > bring

Re: [fpc-pascal] Casting descendant interface variables to base

2011-01-30 Thread Andrew Hall
A more detailed answer: iDesc holds TDescClass as IDescInterface iBase holds TDescClass as IDescInterface iBaseAsBase holds TBaseClass as IBaseInterface iBase holds the IDescInterface interface because they are compile-time compatible (the same as an ancestor object reference holding an object f

Re: [fpc-pascal] Casting descendant interface variables to base

2011-01-30 Thread cobines
2011/1/31 Andrew Hall : > Interfaces do not behave like classes.  Each each interface > implemented/supported by a class is unique - at runtime a "descendent" > interface is entirely unrelated to its ancestor. Ok, so in this assignment var iBase: IBaseInterface; iDesc: IDescInterface; begin

Re: [fpc-pascal] Casting descendant interface variables to base

2011-01-30 Thread Andrew Hall
Interfaces do not behave like classes. Each each interface implemented/supported by a class is unique - at runtime a "descendent" interface is entirely unrelated to its ancestor. Regards Andrew. On 30 Jan 11, at 20:37 , cobines wrote: > Hello everyone, > > I have attached a program about wh

[fpc-pascal] Casting descendant interface variables to base

2011-01-30 Thread cobines
Hello everyone, I have attached a program about which I have a question. Why does iBase have different value than iBaseAsBase? It seems simply assigning to interface variable doesn't change it to base interface, I have to explicitly use "as IBaseInterface". Is it correct? Basically, I'm trying t

Re: [fpc-pascal] FPC + Haiku

2011-01-30 Thread Olivier Coursière
Hi, On 28/01/2011 13:41, Marco van de Voort wrote: In our previous episode, Matt Emson said: Anybody here using FPC on Haiku? If so, how well does it work compared to under Windows or Linux? Yes, me ! It should work well. But, as you can imagine, there is a lot less testers under Haiku. So, b

Re: [fpc-pascal] Building FPC on LFS system

2011-01-30 Thread Jonas Maebe
On 30 Jan 2011, at 18:17, Geoffray Levasseur wrote: > On Sunday 30 January 2011 14:49:29 Jonas Maebe wrote: >> Not really. The default -O2 will be pretty much optimal. Only if you have >> an SSE3 capable cpu, you can add OPT="-Cfsse3" at the end of make command >> line. It won't make much of a di

Re: [fpc-pascal] Building FPC on LFS system

2011-01-30 Thread Geoffray Levasseur
On Sunday 30 January 2011 14:42:10 ik wrote: > LFS is usually installed from an existed linux distro, so you should > install it on the hosting linux, and then compile it to your own distro > (LFS is to build your own base at least). Yes that's a possibility but bootstraping is cleaner so I prefer

Re: [fpc-pascal] Building FPC on LFS system

2011-01-30 Thread Geoffray Levasseur
On Sunday 30 January 2011 14:49:29 Jonas Maebe wrote: > On 30 Jan 2011, at 14:35, Geoffray Levasseur wrote: > > I suppose I'll have to download a precompiled version for my system > > (x86_64) but I want do do this in a clean way. > > Assuming "LFS" in your mail meant "Linux From Scratch", you can

Re: [fpc-pascal] Building FPC on LFS system

2011-01-30 Thread Jonas Maebe
On 30 Jan 2011, at 14:35, Geoffray Levasseur wrote: > I suppose I'll have to download a precompiled version for my system (x86_64) > but I want do do this in a clean way. Assuming "LFS" in your mail meant "Linux From Scratch", you can a download bootstrap binary from ftp://ftp.freepascal.org/

Re: [fpc-pascal] Building FPC on LFS system

2011-01-30 Thread ik
On Sun, Jan 30, 2011 at 15:35, Geoffray Levasseur wrote: > Hi everybody... > > My problem is simple. As far as I know there's no way to build FPC without > FPC. So can anybody can tell me how to bootstrap FPC to build it on a LFS > system without FPC installed? > LFS is usually installed from an

Re: [fpc-pascal] Building FPC on LFS system

2011-01-30 Thread Marco van de Voort
In our previous episode, Geoffray Levasseur said: > > My problem is simple. As far as I know there's no way to build FPC without > FPC. So can anybody can tell me how to bootstrap FPC to build it on a LFS > system without FPC installed? Crosscompile. Either by entirely linking on host, or to as

[fpc-pascal] Building FPC on LFS system

2011-01-30 Thread Geoffray Levasseur
Hi everybody... My problem is simple. As far as I know there's no way to build FPC without FPC. So can anybody can tell me how to bootstrap FPC to build it on a LFS system without FPC installed? I suppose I'll have to download a precompiled version for my system (x86_64) but I want do do this

Re: [fpc-pascal] Re: Converting .doc and/or .html to .pdf

2011-01-30 Thread José Mejuto
Hello Bo, Sunday, January 30, 2011, 9:46:22 AM, you wrote: BB> And now this thread appears here that is very similar to what I need. BB> If a Lazarus/FPC implementation is created, possibly using the BB> OpenOffice hook described here, I would be very much interested too! Please, forget my last

Re: [fpc-pascal] Re: How to use GetElementById?

2011-01-30 Thread Andreas Schneider
Title: Re: [fpc-pascal] Re: How to use GetElementById? On Sunday, January 30, 2011 13:52 silvioprog wrote: Sorry... but nobody? :( Well, when you crosspost to two mailing lists (which you shouldn't ...), then also check both of them ;-) There was an answer on the Lazarus ML. --  Best Rega

Re: [fpc-pascal] Re: Converting .doc and/or .html to .pdf

2011-01-30 Thread José Mejuto
Hello Bo, Sunday, January 30, 2011, 9:46:22 AM, you wrote: BB> The problem is that in order to read them one must have an instance of BB> MSOffice installed and it sometimes takes a long time to open each BB> document too. So I have been on the lookout for some way to implement BB> a program for

[fpc-pascal] Re: How to use GetElementById?

2011-01-30 Thread silvioprog
Sorry... but nobody? :( 2011/1/26 silvioprog > Hi guys, > > I use the GetElementById in PHP with sucess, but in FPC I not know how use. > > In PHP I use (with sucess): > > ... > $dom = new DOMDocument(); > @$dom->loadHTML($data); > $return = @$dom->getElementById('currency_converter_result')

[fpc-pascal] Re: Converting .doc and/or .html to .pdf

2011-01-30 Thread Bo Berglund
On Sunday, January 30, 2011 11:07 Andreas Schneider wrote: >On Sunday, January 30, 2011 09:46 Bo Berglund wrote: >> The link above goes in the end to a download of *compiled* java code >> so it is not that good for me. An FPC implementation would be really >> useful though. > > >The source code o

[fpc-pascal] Re: Converting .doc and/or .html to .pdf

2011-01-30 Thread Bo Berglund
On Fri, 28 Jan 2011 22:27:17 +0100, Andreas Schneider wrote: >On Friday, January 28, 2011 15:52 Marcos Douglas wrote: >>> You're right. The command line is more simple. >>> Thanks for the tip, I will try this. > >> I have not found > >Since you also mentioned that you need to access it from ASP,