Top "Com-interop" questions

COM interop is the layer that allows .NET assemblies to communicate with standard COM objects and libraries.

Starting and stopping IIS Express programmatically

I am trying to build a small application in C# which should start/stop an IIS Express worker process. For …

c# iis com com-interop iis-express
How to get specific Range in Excel through COM Interop?

I have to read an excel file through a COM interop. I search for a specific string using this: this.…

c# excel com-interop range
ASP.Net Com-InterOp Excel Generation issue when hosting

In my ASP.Net application I'm generating a Excel file using MsExcel Object Libby (Com-InterOp) . The application worked fine in …

c# asp.net windows-server-2008 com-interop
Microsoft Excel Application entry is missing in DCOM Config

The entry for "Microsoft Excel Application" is not there in DCOM Config (tried in both 32-bit and 64-bit). How can …

c# office-interop com-interop excel-interop dcom
Fastest way to interface between live (unsaved) Excel data and C# objects

I want to know what the fastest way is of reading and writing data to and from an open Excel …

c# excel automation vsto com-interop
Can not add reference a COM in COM client?

A COM server is create and I registerd that. When I am trying to add that COM server in a …

c# com interop com-interop
Marshal.GetActiveObject() throws MK_E_UNAVAILABLE exception in C#

The following vbscript code works prefectly fine: Dim App Set App = GetObject("","QuickTest.Application") App.Quit But when I translate …

c# com-interop
How to get type of COM object

I am referencing a COM library in Visual Studio, so it has automatically created the corresponding Interop assembly for me. …

.net reflection com interop com-interop
CoCreateInstance returning E_NOINTERFACE even though interface is found

I have a COM class CMyCOMServer implementing IMyInterface in one application, both with correct GUIDs. CMyCOMServer::QueryInterface will return S_…

c++ windows visual-c++ com com-interop
Register a C#/VB.NET COM dll programmatically

Question: I have a .NET dll which I use from a C++ program. Now I have to register the dll …

c# vb.net com dll com-interop