Re: [fpc-pascal] fp universal library ?

2014-02-11 Thread Tomas Hajny
On Tue, February 11, 2014 20:29, Fred van Stappen wrote: > >> It might be better to mention the necessary compiler options (-Mobjfpc >> -Sh) or even better include them directly in the respective sources. >> >> In addition, compiling "uoslib.pas" results in "uoslib.dll", whereas you >> try to load

Re: [fpc-pascal] fp universal library ?

2014-02-11 Thread Fred van Stappen
> It might be better to mention the necessary compiler options (-Mobjfpc > -Sh) or even better include them directly in the respective sources. > > In addition, compiling "uoslib.pas" results in "uoslib.dll", whereas you > try to load uos.dll from libconsoleplay.pas. Yep, sorry. But if you compi

Re: [fpc-pascal] fp universal library ?

2014-02-11 Thread Tomas Hajny
On Tue, February 11, 2014 16:52, Fred van Stappen wrote: . . > First download the source here : > >>> https://sites.google.com/site/fiensprototyping/uoslibtest.tar.gz > > Unzip it and in /uoslibtest/src : > > 1) Compile uoslib.pas (or uoslib.lpi) => it will create uos.dll in /src. . . It might

Re: [fpc-pascal] Getting info on a procedure parameter

2014-02-11 Thread Constantine Yannakopoulos
On Tue, Feb 11, 2014 at 4:52 PM, Marco van de Voort wrote: > In our previous episode, Mark Morgan Lloyd said: > > If a method a.WriteBuff() is passed another method b.finish() as a > > parameter, can it access b before calling finish(), or would this > > require an explicit parameter? > > > > If

Re: [fpc-pascal] fp universal library ?

2014-02-11 Thread Fred van Stappen
Hello. Here next adventure of uos library... I have good news for fpc. ;-) I have try with a "hello world" 32bit library in Windows 7 64bit. It works, a 32bit program can access a 32bit fpc library. But i have bad news for me. :-( I have try with uoslib, and try, and try, changing everything, b

Re: [fpc-pascal] Getting info on a procedure parameter

2014-02-11 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Tue, 11 Feb 2014, Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: If a method a.WriteBuff() is passed another method b.finish() as a parameter, can it access b before calling finish(), or would this require an explicit parameter? If yes

Re: [fpc-pascal] Getting info on a procedure parameter

2014-02-11 Thread Michael Van Canneyt
On Tue, 11 Feb 2014, Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: If a method a.WriteBuff() is passed another method b.finish() as a parameter, can it access b before calling finish(), or would this require an explicit parameter? If yes, how? tobject(tmethod(f

Re: [fpc-pascal] Getting info on a procedure parameter

2014-02-11 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > If a method a.WriteBuff() is passed another method b.finish() as a > parameter, can it access b before calling finish(), or would this > require an explicit parameter? > > If yes, how? tobject(tmethod(func).data) __

[fpc-pascal] Getting info on a procedure parameter

2014-02-11 Thread Mark Morgan Lloyd
If a method a.WriteBuff() is passed another method b.finish() as a parameter, can it access b before calling finish(), or would this require an explicit parameter? If yes, how? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] cthreads and cSemaphoreTimedWait

2014-02-11 Thread Michael Van Canneyt
On Tue, 11 Feb 2014, Dimitrios Chr. Ioannidis wrote: Hi, the TThreadManager class has only the SemaphoreWait procedure and it lacks the SemaphoreTimedWait function. But in the cthreads unit exists a cSemaphoreTimedWait implementation. Is there a problem with that function and didn't includ

[fpc-pascal] cthreads and cSemaphoreTimedWait

2014-02-11 Thread Dimitrios Chr. Ioannidis
Hi, the TThreadManager class has only the SemaphoreWait procedure and it lacks the SemaphoreTimedWait function. But in the cthreads unit exists a cSemaphoreTimedWait implementation. Is there a problem with that function and didn't included in the TThreadManager class ? I have some existed

Re: [fpc-pascal] fp universal library ?

2014-02-11 Thread Fred van Stappen
>I have changed all cdecl into stdcall but without luck... >Did you change the calling convention for both the import and the export > code? (just a sidenote: on Linux you should use cdecl no matter what ifnt >your library to be used by other languages and