Having just upgraded to Pro edition i was fiddling around with an activex dll project.

In order to test my newly compiled DLL i tried to use a standard API call like this:

Code:
Public Declare Sub HelloMessage Lib "C:\Windows...\MyNewDLL.dll" ()
but when I called this sub from a command button, an error message said that it could not find the entry point in the dll for this subroutine.

The MSDN hasnt helped me much in this respect, but it says something about needing a class module in all activex components.

the code that i used in the dll subroutine called "HelloMessage" is a simple one to bring up a normal msgbox saying "hello".

This is just a simple task so that i can get used to the way that dll's work. Once i get this sussed out I can expand, and make my fortune!

What am I doing wrong?

Thanks