I am new to VB. I am trying to create a Visual Basic DLL program. I placed my code for DLL into the VB "Module". As I don't intend to create a class, so there is no code in my "Class Module".
In my "module", the following is my code
Public Sub Test()
MsgBox "Test function call"
I have compiled the DLL without any problem. However, when I try to use the DLL in a Second, Standard VB project, by declaring
Private Declare Sub Test Lib "c:TestDLL_FolderTestDLL.dll" ()
at the top of Second VB code.
Each time, the Test function is called using
I will encounter a error message that says
Can't find DLL entry point Test in "c:TestDLL_FolderTestDLL.dll"
Do anyone know what happen?
Thanks in advance