On Mon, Nov 28, 2011 at 10:57, Elmar Haneke <el...@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@lists.freepascal.**org<fpc-pascal@lists.freepascal.org> > http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal> >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal