Legend Posted August 30, 2009 Posted August 30, 2009 Hi, Want to create a COM library and access it using Office VBA. Created a COM typelibrary, compiled it to register with Interop, and it 'works'. However, all I can see in the object browser is the Class name. I can't see the name of any of the functions in that class. The functions can be called etc, and they work, but I can't see them and can't use intellisense. Any thoughts? Created in C# express edition. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace TestDLL { [ComVisible(true)] public class TestFunctions { [ComVisible(true)] public double AddValues(double value1, double value2) { return (value1 + value2); } } } Apparently ComVisible defaults to true, but I put that in anyway. Quote
Legend Posted August 31, 2009 Author Posted August 31, 2009 n/m. Apparently this is as per design, and it requires me to design and implement an interface. Quote
Recommended Posts