Making Usable DLLs
Posted on 1998-09-13
I need to make some functions in my existing VB5 project into a DLL. I haven't had any prior experience doing this so I just did a very simple DLL that has the function TestDLL and that has the line TestDLL = 100. I successfully compiled the DLL.
Afterwards, I developed a simple project that will use/reference the DLL. I browsed thru different folders to get to the DLL. Why is it listed in References as Project1?
Do I need to have a declaration for the DLL just like I'm using a Windows developed DLL like USER32.DLL. If so, how am I supposed to do this? Can somebody give me a simple code for both the DLL and the project that will use the DLL for me to have a better understanding on this.