Tonatiuh
Jan 6th, 2000, 12:17 AM
I made an ActiveX DLL and I registered. I want to call the functions into it in the same way that I call the API functions, for example functions into a USER32.DLL. But if I declare and call the function that is into my DLL I receive this error message:
Can't find DLL entry point Test in Proyect1
'Test' is the function tha I made into 'Proyect1.DLL'
The code of my ActiveX DLL is:
Public Function Test(x As Integer, y As Single) As Integer
MsgBox x & " - " & y
Test = 7365
End Function
And the code of the EXE proyect from I want to call the Test function is:
Option Explicit
Private Declare Function Test Lib "proyect1" (ByRef x As Integer, ByRef y As Single) As Integer
Private Sub Form_Load()
Dim s As Integer
s = Test(3, 13.5)
MsgBox "The returned value is: " & s
End Sub
Any idea will be deeply appreciated!
Thanks
[This message has been edited by Tonatiuh (edited 01-06-2000).]
Can't find DLL entry point Test in Proyect1
'Test' is the function tha I made into 'Proyect1.DLL'
The code of my ActiveX DLL is:
Public Function Test(x As Integer, y As Single) As Integer
MsgBox x & " - " & y
Test = 7365
End Function
And the code of the EXE proyect from I want to call the Test function is:
Option Explicit
Private Declare Function Test Lib "proyect1" (ByRef x As Integer, ByRef y As Single) As Integer
Private Sub Form_Load()
Dim s As Integer
s = Test(3, 13.5)
MsgBox "The returned value is: " & s
End Sub
Any idea will be deeply appreciated!
Thanks
[This message has been edited by Tonatiuh (edited 01-06-2000).]