Re: [fpc-pascal] Generics and key words

2014-02-12 Thread Sven Barth
Am 13.02.2014 01:28, schrieb silvioprog: Hello, Can I use it: TBrookAction = class(TBrookObject) ... instead of?: generic TBrookAction = class(TBrookObject) ... And, can I use it: TPersonAction = class(TBrookAction) ... instead of?: TPersonAction = class(specialize TBrookAction) ... This

[fpc-pascal] Generics and key words

2014-02-12 Thread silvioprog
Hello, Can I use it: TBrookAction = class(TBrookObject) ... instead of?: generic TBrookAction = class(TBrookObject) ... And, can I use it: TPersonAction = class(TBrookAction) ... instead of?: TPersonAction = class(specialize TBrookAction) ... This would save typing. Sorry, I'm beginner in

Re: [fpc-pascal] Can a library synchronize foreign procedure ?

2014-02-12 Thread Fred van Stappen
>But as TThread is an Object and Objects are implemented on the heap, I >suppose that you need synchronized heaps between the library and the >main program. Exactly, that is what i want... >AFAIK, there is a way to have a library (if written with fpc) "attach" to the >ma

Re: [fpc-pascal] Can a library synchronize foreign procedure ?

2014-02-12 Thread Michael Schnell
On 02/12/2014 02:02 PM, Fred van Stappen wrote: Is is possible for a library to synchronize a procedure form the program who use that library ? What exactly do you mean by "synchronize". In the FPC-RTL we have TThread.Synchronize. This means: - Push an event on the Event Queue to have it ex

[fpc-pascal] Can a library synchronize foreign procedure ?

2014-02-12 Thread Fred van Stappen
Hello everybody. The question is certainly stupid because i guess it is impossible, but who knows... Is is possible for a library to synchronize a procedure form the program who use that library ? I guess no but does it exist a "universal" way for a library to sent message to the program who u

Re: [fpc-pascal] fp universal library ?

2014-02-12 Thread Fred van Stappen
> I don't use Lazarus, i.e. .lpi files are of no use for me. The option > -fPIC isn't necessary for the Win32 target, i.e. I didn't miss that one > (but I was aware of it - at least it was well visible unlike the others > which I had to find by trial and error). Ok and thanks to note it. Hum, i ha

Re: [fpc-pascal] fp universal library ?

2014-02-12 Thread Sandro Cumerlato
Hello Fred, change these two lines: uos.pas line 1086: RTLeventSetEvent(evPause); uoslib.pas line 41: function uos_loadlib(PortAudioFileName: string; SndFileFileName: string; Mpg123FileName: string; SoundTouchFileName: string) : integer; cdecl; Sandro On 11 February 2014 16:52, Fred van S