<div dir="ltr">On Mon, Nov 28, 2011 at 10:57, Elmar Haneke <span dir="ltr"><<a href="mailto:elmar@haneke.de" target="_blank">elmar@haneke.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And one other thing I forgot, it must support classes.<br>
</blockquote>
<br></div>
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.<br>
<br>
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.<span><font color="#888888"><br></font></span></blockquote><div><br>Thank you, it sounds like a good idea<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span><font color="#888888">
<br>
Elmar</font></span><div><div><br>
______________________________<u></u>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>