Hello,
I want to create a DLL file which will contain some business logic for our software.
But what i want is that other people should not be able to use that DLL. ie, other people should not be able to either reference the DLL in their application OR should not be able to view the functions present in the DLL.
I have also created a DLL for Testing this. Below is the code :
Public Class ABC
Private Function ShowMessage(ByVal Str as String) as String
Msgbox(Str)
End Function
End Class
I compiled the code and created the DLL File. Then I Created a Windows Application With a Form.
Form Code :
Public Class Form1
Declare Function ShowMessage Lib <dllname> Alias "ShowMessage" (ByVal Str as String) as String
Private Sub Button1_Click()
ShowMessage("Testing DLL")
End Sub
End Class</dllname>
When I execute the above code, it shows an error on button Click.
"Entrypoint for ShowMessage Not found in DLL"
Can anyone please help me in this.
Any help would be greatly appreciated.
Thanks in advance. Awaiting a reply soon.