List the steps in order, to use a COM object from a .NET assembly in Visual Studio?

Q

Managed Code and Unmanaged Code related ASP.NET - List the steps in order, to use a COM object from a .NET assembly in Visual Studio?

✍: Guest

A

1. Install and register the COM object on your system.
2. Open the .NET project in Visual Studio, and add a reference to the COM object, as shown in diagram below. If the COM object does not appear on the COM tab of the Add Reference dialog box, you can add a reference directly to the executable by clicking Browse.
3. Create an instance of the COM object in code, and use it as you would any other object.

2009-04-08, 4363👍, 0💬