I have 2 files: lib.dll & executor.exe.
lib.dll
Public Module Module1
Public Function Abc()
MsgBox("I am dll")
End Function
End Module
I want to import lib.dll and use its function in executor.exe.
I know lib.dll can be added via visual basic reference,
But when I place lib.dll in another directory, then it shows errors.
I want to import dll from a path something like as shown below.
imports "C:\Users\root\Desktop\lib.dll"
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Module1.Abc()
End Sub
End Class
create class
change function to sub
I got this but it doesn't return anything `Imports System.Reflection Public Class Form1