" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Registering a COM Interop dll in .NET

Posted on November 23rd, 2015 by Amrita Dash

To create and register a COM interop dll with C#.NET (VS 2008) , we need to implement the following steps. 1. Create a class library project 2. Add a reference to Runtime.InteropServices in the class using System.Runtime.InteropServices; 3. Add Comvisible attribute to the class.  [ComVisible(true)]     public class clsHelloWorld {      // this class should […]