[fpc-pascal] Re: dll for C#
ik
idokan at gmail.com
Mon Nov 28 12:53:04 CET 2011
On Mon, Nov 28, 2011 at 10:57, Elmar Haneke <elmar at haneke.de> wrote:
>
> And one other thing I forgot, it must support classes.
>>
>
> You have to write an procedural wrapper around your class - each method
> gets an Procedure thar recieves the object as parameter and calls that
> object's method. These procedures are exported as stdcall as for an regular
> Windows DLL.
>
> In C# you can write an class storing the FPC object as an IntPtr. The
> procedures from DLL are called using the P/Invoke mechanism.
>
Thank you, it sounds like a good idea
>
> Elmar
>
> ______________________________**_________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111128/3a328811/attachment.html>
More information about the fpc-pascal
mailing list