Hi,
Could you please show me where my error is?
I have created one "DLL" file by myself. Then, I want to reuse it in another project, but the system prompt error message whenever I call that "DLL" function.
I created "DLL" with "ActiveXDll". The following is my dll code.
Public Function Adding2(ByVal x As Integer, ByVal y As Integer) As Integer
Adding = x + y
End Function
After compiling, I get "project.dll". Finally, I declare this dll's function as below.
Public Declare Function Adding2 Lib "project1.dll" (ByVal x As Integer, ByVal y As Integer) As Integer
Error, run time error "53", is "File not found".
Private Sub Command1_Click()
Label1.Caption = Adding2(5, 4)
End Sub
if I declare as
Public Declare Function Adding2 Lib "C:\Documents and Settings\Zawpai\Desktop\test extsiting file 3\project1.dll" (ByVal x As Integer, ByVal y As Integer) As Integer
, it shows "run time error 453". can't find dll entry point.
How should I solve above problem? Please give me some suggestion.
regards,
zawpai