I have a selfmade dll with two functions. I want to call one function from my main-program but I always get an error.
The error-code is 453. The message is that the point to jump into the dll cannot be found. Can anyone tell me my error?
dll (named UserAuth.dll as ActiveX-dll):
**********************************************
Private Function CheckAuthUser() As String
Dim RetStr As String
RetStr = "Test"
CheckAuthUser = RetStr
End Function
Main Program:
**************
Private Declare Function CheckAuthUser Lib "UserAuth.dll" () As Boolean
Private Sub Form_Load()
Aufruf = CheckAuthUser
End Sub
The line "Aufruf = CheckUserAuth" gets the error!
Hope, anyone can help me!
Thank you
Thomas
The error-code is 453. The message is that the point to jump into the dll cannot be found. Can anyone tell me my error?
dll (named UserAuth.dll as ActiveX-dll):
**********************************************
Private Function CheckAuthUser() As String
Dim RetStr As String
RetStr = "Test"
CheckAuthUser = RetStr
End Function
Main Program:
**************
Private Declare Function CheckAuthUser Lib "UserAuth.dll" () As Boolean
Private Sub Form_Load()
Aufruf = CheckAuthUser
End Sub
The line "Aufruf = CheckUserAuth" gets the error!
Hope, anyone can help me!
Thank you
Thomas