Like usually, i try to do something, and i don't know how

I have create a DLL pure
Code: Select all
ProcedureDLL LeTablo(Pointeur.l)
Dim Tablo.s(4)
Tablo(1) = "Pure"
Tablo(2) = "is "
Tablo(3) = "your"
Tablo(4) = "friend"
ProcedureReturn @Tablo()
EndProcedure
I search a solution since an hour, and i have just found the inverse function.
But i have found this code for DLL in C.
But it's too difficult for my little head

Is it the more simple way for do this ???
Code: Select all
Private Declare Function AddLongs_Pointer Lib "MyStDll.dll" _
(FirstElement As Long, ByVal lElements As Long) As Long
Private Declare Function AddLongs_SafeArray Lib "MyStDll.dll" _
(FirstElement() As Long, lSum As Long) As Long
Private Sub Form_Load()
Dim ArrayOfLongs(2) As Long
Dim lSum As Long
Dim k As Long
ArrayOfLongs(0) = 1
ArrayOfLongs(1) = 2
ArrayOfLongs(2) = 3
lSum = AddLongs_Pointer(ArrayOfLongs(0), UBound(ArrayOfLongs) + 1)
MsgBox "Result with C array = " & Str$(lSum)
k = AddLongs_SafeArray(ArrayOfLongs(), lSum)
If k = 0 Then
MsgBox "Result with Safearray = " & Str$(lSum)
Else
MsgBox "Call with Safearray failed"
End If
End Sub
Good day