Public Declare Function ModStr Lib "Test123.dll" (ByVal str1 As String, _
ByVal str2 As String, ByRef str3 As String) As Long
Sub abc()
Dim myStr as String
myStr = String(16," ")
Debug.Print ModStr("Hello","W0rlD!", myStr) // Returns 0
Debug.Print myStr // Returns " "
End Sub