On Tue, 8 Aug 2006, Jonas Maebe wrote:

> 
> On 08 Aug 2006, at 20:39, Alexandre Leclerc wrote:
> 
> > *Problem*
> > I'm exporting some classes (originally a TBitmap; now a custom class)
> > to the ROPS engine and then interacting with the class in the
> > scripting engine. Everything works, except for some functions that
> > behave very strange. They skip/duplicate the parameters and invert
> > parameters.
> 
> Try declaring the methods as "stdcall" (although I'm not sure whether this
> works for methods).

That won't work. Delphi doesn't use stdcall by default, so the ROPS engine
doesn't expect this.

The problem is more likely that all arguments are extended, which probably
means that the stack is used differently. Are they pushed on the FPU stack ?

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

Reply via email to