I have created a class in VB .NET with a public interface, compiled as a user control library (DLL). However, I am learning that VB .NET doesn't really support COM in the way of registering DLL's, etc. I need to be able to register the DLL so that I can access the interface from scripts and other applications.

Is there some code that I need to include in the DLL to allow it to be registerable? Or is there another way that I may achieve my goal? Whatever method used, it has to be automatic and scriptable (for instance, I can now script the registering of my current DLL created in VB6, without user intervention, at login).

Additionally, I have checked "Register for COM Interop" in the Properties dialog. After doing that, I then get the following error when trying to register the control:

"MyControl.dll was loaded, but the DLLRegisterServer entry point was not found. This file can not be registered."

Thanks and let me know if you need any more info...