http://www.vb-helper.com/HowTo/dll.zip

	Purpose
Make a DLL server

	Method
1. Start a new project and select the project type ActiveX DLL. This creates a class module. Give the class a name. For example, MathServer might be a good name if the DLL will contain math functions.

2. Select the Project menu's Properties command. Change the project name to something meaningful like FunctionLibrary.

3. Give the class the public functions and routines you want the DLL to support. For example, you might give it a LogN function to calculate logarithms base N.

4. From the File menu, select the MakeFunclib.dll command.

Now you are ready to use the DLL in another program.

5. Start a new program. Select the EXE type.

6. Select the Project menu's References command.  Find the DLL and select it. It will have the name you gave the project in step 2 (FunctionLibrary in this example).

7. In the code, create a new MathServer object and invoke its methods.

    Private Sub Command1_Click()
    Dim math_server As MathServer
    Dim operand As Single
    Dim base As Single
    
        operand = CSng(txtOperand.Text)
        base = CSng(txtBase.Text)
    
        Set math_server = New MathServer
        txtResult.Text = Format$(math_server.LogN(operand, base))
    End Sub

	Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does no error
handling. You can use the example in any form, but please mention
www.vb-helper.com.
