I like to make a dll for the my first time so I have put this function in a classmodule in a ActiveXdll project to test if it works:
Public Function Convdbl2(var As Variant) As Double
'Convert Null to 0.
If IsNumeric(var) Then
Convdbl2 = CDbl(var)
Convdbl2 = 0
And in my standard exe i have declare the function:
Declare Function Convdbl2 Lib "AUStyr32.dll" (ByVal var As Variant) As Double
But when i try to use it in my standard exe like: d# = Convdbl2(Null)
I get the error message:
Can´t find DLL entery point Convdbl2 in AUStyr32.dll.
Why, and how so solve it ?