namespace ClassLibrary1 >>{ >> [ClassInterface(ClassInterfaceType.AutoDual)] >> [ProgId("Class1Library.Class1")] >> public class Class1 >> { >> [ComVisible(true)] >> public string Doit() >> { >> return "Hello World"; >> } >> } >>}In the project 'Properties/Application' page click 'Assembly Information' button and make sure 'Make assembly COM visible' is checked. Build the application. If all is well then Class1Library.Class1 should appear in the registry.
object = CREATEOBJECT("Class1Library.Class1") >>? object.Doit()Note I deliberately made this a bit more complicated than ness. in that I've defined a ProgId that is different to the Class namespace.