Am 28.11.2013 23:28, schrieb Nuno Pedrosa: > thanks for your reply. > this will probably solve the calling convention problem, > but not the order of the arguments. You could also try to use BIND(C) to explicitly pass the address of the string and its length. Write a wrapper routine for each routine for the library that you want to call. Regards Thomas