I missed that "stdcall" at the end of the Delphi function - sorry for the confusion.

So if the calling convention is the same, then a parameter/type miss-match seems more likely.
StringBuilder does seem to be the correct type to use - according to this: http://msdn.microsoft.com/en-us/libr...stringsanchor3

Here's what I would try first:
1) change "string peso_minimo" to StringBuilder - I see no reason for it to be different
2) give all the StringBuilder's more than 10 - just to be safe

gg