Re: [Lazarus] Callback to method pointer

2011-05-02 Thread Michael Schnell
AFAIK, only if the dll is done in FPC as well. Moreover the might be problems, if the dll and the main program don't use the same memory manager. By default they don't. This is handled somewhere in the Wiki. -Michael -- ___ Lazarus mailing list Lazar

Re: [Lazarus] Callback to method pointer

2011-04-27 Thread Hans-Peter Diettrich
Leonardo M. Ramé schrieb: Hi, I'm using a shared library that allows me to pass a pointer to a function to act as a callback. To execute my function I use something like this: myDllFunction(param1, param2,..., paramn, @myCallback); myCallback is a regular procedure. What if I want to use a "p

Re: [Lazarus] Callback to method pointer

2011-04-27 Thread michael . vancanneyt
On Wed, 27 Apr 2011, Leonardo M. Ramé wrote: Hi, I'm using a shared library that allows me to pass a pointer to a function to act as a callback. To execute my function I use something like this: myDllFunction(param1, param2,..., paramn, @myCallback); myCallback is a regular procedure. What

[Lazarus] Callback to method pointer

2011-04-27 Thread Leonardo M . Ramé
Hi, I'm using a shared library that allows me to pass a pointer to a function to act as a callback. To execute my function I use something like this: myDllFunction(param1, param2,..., paramn, @myCallback); myCallback is a regular procedure. What if I want to use a "procedure of object" (method)