I\'ve made a simple C# DLL (that\'s part of a much larger project) using VS2005. I need to use the DLL in Excel via VBA code so I am using COM Interop on the assembly. I a
Make sure the you have GuidAttribute in the assembly level.
[Guid("")]
[ComVisible(true)]
interface IFoo
{
void DoFoo();
}
[Guid("")]
[ComVisible(true)]
[ProgId("ProgId.Foo")]
class Foo : IFoo
{
public void DoFoo()
{
}
}