I am interested in creating an ActiveX DLL that will simply accept two
numbers from a VB program, add them together and pass back
their sum to the calling program. I guess my problem has two parts:

Part 1. How can one create a DLL in VB?. I am presuming that by
starting a new VB ActiveXDll project and compiling it to a
DLL the DLL is created.

Part 2. Having created the ActiveXDLL, how can it be accessed via VB?
The reason I used a simple addition function as an example
is because I have developed some much more sophisticated functions
used in some of my programs and I don't want the algorithm,
logic and coding to be available to end users.

So I guess what I am looking for is a simple example of a project where an
ActiveXDLL is created and then accessed via VB. Any assistance will be greatly
appreciated, thanks.