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.

Elmar
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to