I apologize if I answer only now but I was messed up until yesterday ...
I tried to do as you say, and the dll contains a form of class within a function with unique and simple:
Code:
Public Function Sum (ByRef x As Double, ByRef y As Double) As Double
Sum = x + y
End Function
Then on the excel file I added the dll (sees) that is in the same directory as the excel file. excel the form is as follows:
Code:
Option Explicit
Public Declare Function Sum Lib "mF_colors.dll" (ByRef x As Double, ByRef y As Double) As Double
Sub Test ()
Dim v (10) As Double
v (1) = 0.3
v (2) = 0.5
v (3) = Sum (v (1), v (2))
End Sub
But at this point gives me an error: "Could not find entry point in DLL Sum mF_colors.dll"
What does this mean?
Bookmarks