When print function is called the parameter indicating skip to next line or stay on the same line is pushed on stack very early.
There is a problem with the calling convention so the parameters of the solvemate function are not cleaned and the stack is not anymore correct when print is called, the parameter has been replaced by anything.
The solution is to add 'cdecl' when defining solvemate :
Code: Select all
dim SolveMate as function cdecl ( _
byval as const zstring ptr, _
byval as const integer, _
byval as const integer _
) as zstring ptr
Edit bis : I forgot to thank dodicat so thank you for the dll.