How can I write a dll library ? I did this:

1. I have created a new project and choosen ActiveX DLL.

2. In Declaration section I wrote :

Public Sub Hello()

End Sub

3. Then I compiled this project.

4. Opend a new normal project, created a new module and wrote in it this:

Public Declare Sub Hello Lib "Project1.dll" ()

then in Sub Form_Load I wrote: Call Hello.

And I got this error : "Can't find dll entry in project1.dll".

What's wrong ?