tagged [com-interop]
warning MSB3391: <DLL> does not contain any types that can be unregistered for COM Interop
warning MSB3391: does not contain any types that can be unregistered for COM Interop 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 V...
- Modified
- 25 Nov at 17:31
Can't instantiate a COM object written in C# from VBA (VB6 ok)
Can't instantiate a COM object written in C# from VBA (VB6 ok) Using VS 2008, here is my COM object ``` using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropS...
- Modified
- 22 Oct at 08:15
Runtime callable wrapper (RCW) scope - process or application domain?
Runtime callable wrapper (RCW) scope - process or application domain? What is the scope of Runtime Callable Wrapper (RCW), when referencing unmanaged COM objects? According to the docs: > The runtime ...
- Modified
- 23 Jun at 14:2
Which blocking operations cause an STA thread to pump COM messages?
Which blocking operations cause an STA thread to pump COM messages? When a COM object is instantiated on an STA thread, the thread usually has to implement a message pump in order to marshal calls to ...
- Modified
- 23 May at 12:17
Unable to cast COM object of type 'microsoft.Office.Interop.Excel.ApplicationClass' to 'microsoft.Office.Interop.Excel.Application'"
Unable to cast COM object of type 'microsoft.Office.Interop.Excel.ApplicationClass' to 'microsoft.Office.Interop.Excel.Application'" I am attempting to capture some data from Excel from within a C# co...
- Modified
- 21 Oct at 18:25
Excel interop: _Worksheet or Worksheet?
Excel interop: _Worksheet or Worksheet? I'm currently writing about dynamic typing, and I'm giving an example of Excel interop. I've hardly done any Office interop before, and it shows. The [MSDN Offi...
Registering COM referenced DLLs on a build server
Registering COM referenced DLLs on a build server We're developing a C# application that references a few COM libraries (AutoIT for example). I am including all referenced components under source cont...
- Modified
- 18 Sep at 15:49
How can I wrap a COM object in a native .NET class?
How can I wrap a COM object in a native .NET class? I'm using an extensive existing COM API (could be Outlook, but it's not) in .NET (C#). I've done this by adding a "COM Reference" in Visual Studio s...
- Modified
- 23 May at 12:32
How to handle COM events from a console application?
How to handle COM events from a console application? I'm using a COM object from a third party library that generates periodic events. When I use the library from a Winforms app, having the object as ...
Using a COM dll from C# without a type library
Using a COM dll from C# without a type library I need to use a COM component (a dll) developed in Delphi ages ago. The problem is: the dll does not contain a type library... and every interop feature ...
Using Wrapper objects to Properly clean up excel interop objects
Using Wrapper objects to Properly clean up excel interop objects All of these questions: - [Excel 2007 Hangs When Closing via .NET](https://stackoverflow.com/questions/247833/excel-2007-hangs-when-clo...
- Modified
- 23 May at 10:27
Prevent Excel from quitting
Prevent Excel from quitting I'm missing an `Excel.Application.Quit` or an `Excel.Application.BeforeQuit` event. I access Excel from a C# WinForms application via COM Interop. Given an `Excel.Applicati...
- Modified
- 6 Apr at 14:33
Is PIA embedding broken in .NET 4.0 beta 2?
Is PIA embedding broken in .NET 4.0 beta 2? A while ago, I wrote some Word interop examples in Visual Studio beta 1, and set the reference to `Microsoft.Office.Interop.Word` to be embedded (set the "E...
- Modified
- 1 Dec at 13:51
Starting and stopping IIS Express programmatically
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 this purpose I want to use the official "II...
- Modified
- 23 Feb at 21:33
Fastest way to interface between live (unsaved) Excel data and C# objects
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 workbook to c# objects. The back...
- Modified
- 1 Oct at 14:47
Calling COM visible managed component from managed code through COM wrapper
Calling COM visible managed component from managed code through COM wrapper I have a 3rd party component, lets say FIPreviewHandler to handle preview, which implements IPreviewHandler. FIPreviewHandle...
- Modified
- 25 Jun at 16:9
Is it possible to get Code Coverage Analysis on an Interop Assembly?
Is it possible to get Code Coverage Analysis on an Interop Assembly? I've asked this question over on the MSDN forums also and haven't found a resolution: [http://forums.microsoft.com/msdn/ShowPost.as...
- Modified
- 29 Sep at 17:26
Return array of interface from a .NET method via COM4J
Return array of interface from a .NET method via COM4J How can I return an array of objects (implementing a COM interface) from a C# method to a Java method via COM4J? Example C# class that generates ...
- Modified
- 23 May at 10:24
When is it necessary/appropriate to use InAttribute and OutAttribute for COM Interop
When is it necessary/appropriate to use InAttribute and OutAttribute for COM Interop I am trying to go through the mess of COM interop definitions we have scattered across various projects and collect...
- Modified
- 21 Dec at 16:49
ServiceStack + 3rd Party COM Inteop + Context disconnected exception
ServiceStack + 3rd Party COM Inteop + Context disconnected exception I'm getting Context Disconnected errors when testing my ServiceStack service. I assume it's due to failing race conditions between ...
- Modified
- 20 Jun at 09:12
Await and SynchronizationContext in a managed component hosted by an unmanaged app
Await and SynchronizationContext in a managed component hosted by an unmanaged app [This appears to be a bug](https://stackoverflow.com/a/19555959/1768303)[Application.DoEvents](http://msdn.microsoft....
- Modified
- 23 May at 10:29
Is it possible to intercept (or be aware of) COM Reference counting on CLR objects exposed to COM
Is it possible to intercept (or be aware of) COM Reference counting on CLR objects exposed to COM When .net objects are exposed to COM Clients through COM iterop, a CCW ([COM Callable Wrapper](http://...
- Modified
- 23 May at 12:26
How to create a COM object in a UWP application? (C#)
How to create a COM object in a UWP application? (C#) How to create COM object in a Universal Windows Platform (UWP) application? I want to switch from WPF to UWP. Since my workload requires making ...
- Modified
- 17 Aug at 04:18
How to make make a .NET COM object apartment-threaded?
How to make make a .NET COM object apartment-threaded? .NET objects are free-threaded by default. If marshaled to another thread via COM, they always get marshaled to themselves, regardless of whether...
- Modified
- 16 May at 17:17