it looks, that there is not much interest in this forum
in extending MathCad with your own written user functions.
though i post an updated version of the userdll sample project,
which also shows how to deal with strings, which eventually
can be interesting if one wants to write some more sophisticated
file I/O functions, than that already MathCad implemented PRN-stuff.
enjoy
-tiwag