Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread ik
On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ? http://wiki.freepascal.org/Helper_types They can, but there is a protocol that I'm trying to create that provides me information what to execute (out of white list). The thing is, that the first

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread michael . vancanneyt
On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ? http://wiki.freepascal.org/Helper_types They can, but there is a protocol that I'm trying to create that provides me information what to execute (out of white

RE : [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread Ludo Brands
They can, but there is a protocol that I'm trying to create that provides me information what to execute (out of white list). The thing is, that the first request maps the methods to be used, and there could be 2 or 200. To implement 200 methods that might be used is not a good idea imho, but

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread ik
On Wed, Jun 20, 2012 at 10:20 AM, michael.vancann...@wisa.be wrote: On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ? http://wiki.freepascal.org/**Helper_typeshttp://wiki.freepascal.org/Helper_types They

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread kyan
I suggest that you implement this using interfaces. You place the interface declaration in a common file, use the interfaces from the main exe but implement them in separate dlls. This gives you all the flexibility you want, e.g. group your methods into bundles and place them on different

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread michael . vancanneyt
On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 10:20 AM, michael.vancann...@wisa.be wrote: On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ?

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread Marco van de Voort
In our previous episode, kyan said: I suggest that you implement this using interfaces. You place the interface declaration in a common file, use the interfaces from the main exe but implement them in separate dlls. Or maybe go a step further, and use IDispatch that passes through unknown

[fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread Reinier Olislagers
Morning list, I'm trying to convert a large number of seconds to a TTime. To my surprise - without a Delphi background ;) - EncodeTime only takes up to 59 seconds... ;) Same for EncodeTimeInterval So I ended up with something like: IncSecond(EncodeTime(0,0,0,0), HugeNumberOfSecondsInteger);

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread OBones
Reinier Olislagers wrote: Morning list, I'm trying to convert a large number of seconds to a TTime. To my surprise - without a Delphi background ;) - EncodeTime only takes up to 59 seconds... ;) Same for EncodeTimeInterval Considering that TTime is a float where the fractional part is the

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread dhkblaszyk
Try MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); On 20 jun '12, Reinier Olislagers wrote: Morning list, I'm trying to convert a large number of seconds to a TTime. To my surprise - without a Delphi background ;) - EncodeTime only takes up to 59 seconds... ;) Same for

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread Reinier Olislagers
On 20-6-2012 11:53, dhkblas...@zeelandnet.nl wrote: Try MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); Bedankt, Darius. That's indeed shorter and fairly clear... but the advantage of the other way is that I don't need to remember what units TTime uses internally... ;) Regards,

Re: [fpc-pascal] fpimage blur

2012-06-20 Thread Mattias Gaertner
On Fri, 1 Jun 2012 09:32:22 +0200 Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 31 May 2012 20:42:35 +0100 Graeme Geldenhuys graemeg.li...@gmail.com wrote: [...] Alternatively, AggPas also has many filter/blur/interpolation functions available. There are a few AggPas demos

Re: [fpc-pascal] Creating video files

2012-06-20 Thread Gerhard Scholz
In my opinion, the easiest way is to create a series of BMP's and then use VirtualDub or VirtualDubMod (I think it's at Sourceforge). Greetings - Original Message - From: Krzysztof dib...@wp.pl To: fpc-pascal fpc-pascal@lists.freepascal.org Sent: Tuesday, June 19, 2012 3:53 PM Subject:

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread Inoussa OUEDRAOGO
Think of a plug-able system. I have an engine, and code to execute. Instead of compile everything to an ELF/PE, I place code on dynamic shard library, and load it on run time when needed. The idea is that the engine will not be rewritten for every new request (that comes often), because

Re: [fpc-pascal] Creating video files

2012-06-20 Thread Krzysztof
Hmm, external application is nice idea. But VirtualDub is windows only. Anyone know multi-platform comandline video converter? What I found is Mencoder. I must test it 2012/6/20 Gerhard Scholz g...@g--s.de: In my opinion, the easiest way is to create a series of BMP's and then use VirtualDub or

Re: [fpc-pascal] Creating video files

2012-06-20 Thread Flávio Etrusco
Apart from _the_ multi-platform commandline video converter, ffmpeg? http://ffmpeg.org/ It's the back-end for WinFF (and most other utilities like these). Also, I would expect VirtualDub to run fine with WINE. -Flávio On Wed, Jun 20, 2012 at 11:00 AM, Krzysztof dib...@wp.pl wrote: Hmm, external

Re: [fpc-pascal] Creating video files

2012-06-20 Thread Krzysztof
Ffmpeg looks similar like Mencoder project. So I have some solutions for output encoding, but there is a problem how to send frames to this encoders. Mencoder can encode video from series of PNG files, but can't find similar option in ffmpeg. Anyone know something about RAW video format? It seems

Re: [fpc-pascal] Creating video files

2012-06-20 Thread Giuliano Colla
Il 20/06/2012 19:22, Krzysztof ha scritto: Ffmpeg looks similar like Mencoder project. So I have some solutions for output encoding, but there is a problem how to send frames to this encoders. Mencoder can encode video from series of PNG files, but can't find similar option in ffmpeg. | ||

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread Sven Barth
Am 20.06.2012 12:16, schrieb Reinier Olislagers: On 20-6-2012 11:53, dhkblas...@zeelandnet.nl wrote: Try MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); Bedankt, Darius. That's indeed shorter and fairly clear... but the advantage of the other way is that I don't need to remember what

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread Bernd
2012/6/20 dhkblas...@zeelandnet.nl: Try MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); MyTTime := HugeNumberOfSecondsInteger / SecsPerDay; The predefined constants from SysUtils look nicer. ___ fpc-pascal maillist -