Re: [fpc-pascal] Can I store an object reference in C as void pointer?

2008-05-20 Thread Felipe Monteiro de Carvalho
On 5/20/08, Guillermo Martínez Jiménez <[EMAIL PROTECTED]> wrote: > Is this correct or should I use a different approach? Yes, it is correct. It is the same basic strategy adopted in the C bindings for LCL: http://wiki.lazarus.freepascal.org/LCL_Bindings The only problem is that your pseudo pasc

[fpc-pascal] Can I store an object reference in C as void pointer?

2008-05-20 Thread Guillermo Martínez Jiménez
Hello. I'll create a library in Object Pascal. I'll compile it in a DLL/so/dynlib and want to define a public interface to be used in any language so I decided to define it as "C public functions". I'll use objects so some functions of the library should return or receive object references but I'

Re: [fpc-pascal] Sharing memory between applications

2008-05-20 Thread Henry Vermaak
2008/5/20 Andreas Berger <[EMAIL PROTECTED]>: > I need to share memory between applications and wanted to know if FPC has > this implemented. Today I use the windows "CreateFileMapping" function, but > this is windows specific. > > Another thing: To synchronize the shared memory I use a mutex which

[fpc-pascal] Sharing memory between applications

2008-05-20 Thread Andreas Berger
I need to share memory between applications and wanted to know if FPC has this implemented. Today I use the windows "CreateFileMapping" function, but this is windows specific. Another thing: To synchronize the shared memory I use a mutex which can be initialized be name on each application. Ca