S
Simon Osborn
Hi,
Instead of adding my own custom dll's as references into my project, I want
to call it via declare statement. However, I'm having a few difficulties!
My dll contains a basic function :
Public Class MyDLL
Public shared function MyTestFunction (byval mystr as string)
try
return mystr & "Success"
catch ex as exception
msgbox("There has been an error!")
end try
End Function
End Class
My Test Application contains:
Module Main
Private Declare Auto Function MyTestFunction _
Lib "DLL Example.dll" _
Alias "MyTestFunction" _
(ByVal MyStr as String)
Sub Main()
MsgBox(MyTestFunction("Test was : "))
End Sub
End Module
An exception is thrown telling my that its "unable to find an entry point"
into the dll "DLL Example.dll"
Should I be doing something else within my dll to expose the function
(exported)?
Or am calling the dll within my application incorrectly?
SSO.
Instead of adding my own custom dll's as references into my project, I want
to call it via declare statement. However, I'm having a few difficulties!
My dll contains a basic function :
Public Class MyDLL
Public shared function MyTestFunction (byval mystr as string)
try
return mystr & "Success"
catch ex as exception
msgbox("There has been an error!")
end try
End Function
End Class
My Test Application contains:
Module Main
Private Declare Auto Function MyTestFunction _
Lib "DLL Example.dll" _
Alias "MyTestFunction" _
(ByVal MyStr as String)
Sub Main()
MsgBox(MyTestFunction("Test was : "))
End Sub
End Module
An exception is thrown telling my that its "unable to find an entry point"
into the dll "DLL Example.dll"
Should I be doing something else within my dll to expose the function
(exported)?
Or am calling the dll within my application incorrectly?
SSO.