tagged [com]
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
Is there an embeddable Webkit component for Windows / C# development?
Is there an embeddable Webkit component for Windows / C# development? I've seen a few COM controls which wrap the Gecko rendering engine ([GeckoFX](http://code.google.com/p/geckofx/), as well as the c...
Executing R script programmatically
Executing R script programmatically I have a C# program that generates some R code. Right now I save the script to file and then copy/paste it into the R console. I know there is a COM interface to R,...
Is it possible to test a COM-exposed assembly from .NET?
Is it possible to test a COM-exposed assembly from .NET? I have a .NET assembly which I have exposed to COM via a tlb file, and an installer which registers the tlb. I have manually checked that the i...
- Modified
- 16 Dec at 15:7
Async/await, ThreadPool and SetApartmentState
Async/await, ThreadPool and SetApartmentState I'd like to use `await Task.Run(DoWork)`, to do some repetitive single-threaded computational work on ThreadPool. The problem is, I need to use STA COM ob...
- Modified
- 29 Oct at 02:32
Microsoft.Office.Core Reference Missing
Microsoft.Office.Core Reference Missing Using the example provided in [codeproject](http://www.codeproject.com/KB/cs/outlookconnector.aspx) I am struggling to work out where I can find the reference t...
- Modified
- 26 Sep at 13:58
Should I deploy Interop.x.dll files with .NET application?
Should I deploy Interop.x.dll files with .NET application? We have a .NET app that consumes COM-objects in different DLLs, also used in the VB6 part of our app. When referencing a COM library, Visual ...
- Modified
- 14 Aug at 16:12
Excel .NET COM - Automation error. The system cannot find the file specified
Excel .NET COM - Automation error. The system cannot find the file specified I have a .NET 2.0 COM object that's used by VBA in Excel. It works fine on my dev machine, but when trying to use it on a c...
- Modified
- 19 May at 09:18
Retrieving the COM class factory for component failed
Retrieving the COM class factory for component failed I am using an excel object (COM component) for excel manipulation. It works fine on my PC, but when I deploy the application to our Intranet I am ...
Any good tutorials on using COM from C#?
Any good tutorials on using COM from C#? For one of a side-projects i need to write a C# app that required to use a third-party INPROC COM object. Unfortunately, C# is not my primary programming langu...
How to cast Variant to TADOConnection.ConnectionObject?
How to cast Variant to TADOConnection.ConnectionObject? I've received a native COM ADOConnection which is stored in Variant. I would like to pass interface of this connection to the VCL wrapper TADOCo...
Building an COM-interop enabled project without registering it during build
Building an COM-interop enabled project without registering it during build In Visual Studio 2010, I'm trying to build an COM-interop enabled C# project without registering it during build, but I requ...
- Modified
- 25 Nov at 17:52
How do I properly clean up Excel interop objects?
How do I properly clean up Excel interop objects? I'm using the Excel interop in C# (`ApplicationClass`) and have placed the following code in my finally clause: Although this kind of works, the `Exce...
- Modified
- 26 Dec at 14:28
what's the implication of void**?
what's the implication of void**? When I develop in COM, I always see (void**) type conversion as below. What's exact meaning of it? IMHO, it tells the compiler not to enforce type validation, since t...
Equivalent code of CreateObject in C#
Equivalent code of CreateObject in C# I have a code in VB6. Can anyone tell me how to write it in `C#`. This code is below: ``` Set Amibroker = CreateObject("Broker.Application") Set STOCK = Amibroker...
Interfaces can't be instantiated but is this an exception
Interfaces can't be instantiated but is this an exception I'm very surprised after seeing that I actually have to Instantiate an Interface to use the Word Interoop in C#. The `Microsoft.Office.Interop...
- Modified
- 20 May at 15:0
An MTA Console application calling an STA COM object from multiple threads
An MTA Console application calling an STA COM object from multiple threads Although there are many questions about COM and STA/MTA (e.g. [here](https://stackoverflow.com/questions/127188)), most of th...
- Modified
- 23 May at 12:34
Setting 32-bit x86 build target in Visual C# 2008 Express Edition?
Setting 32-bit x86 build target in Visual C# 2008 Express Edition? I'm building a C# application that loads a 32-bit COM dll. The compiled application runs fine on 32-bit Windows but barfs on 64 bit W...
- Modified
- 2 May at 02:33
COM object that has been separated from its underlying RCW cannot be used
COM object that has been separated from its underlying RCW cannot be used I have some COM component which I call from some c# dll. I also have a winforms app that uses that .dll. When I close the app ...
- Modified
- 9 Apr at 18:25
Get property names via reflection of a COM object
Get property names via reflection of a COM object How can I read out all property names via reflection of an COM Object in C#? I know how to get the property if I know the name. but what is when I wan...
- Modified
- 7 Feb at 13:13
Could not be converted to a type library - Error: Element not found
Could not be converted to a type library - Error: Element not found I'm getting the error: > The assembly "C:\XYZ.dll" could not be converted to a type library. Type library exporter encountered an e...
IntelliSense in custom COM classes in VBA
IntelliSense in custom COM classes in VBA Is there a way to get IntelliSense in own built COM classes in VBA? E.g. in the example below I would like to get "Number" showing up, whenever I press on the...
- Modified
- 12 Jul at 12:32
Does an ATL COM Object Have a Message Pump?
Does an ATL COM Object Have a Message Pump? If you create a new ATL project and add a simple COM object to it (note: an object and not a control) that uses the Apartment threading model, will there be...
Marshal.GetActiveObject() throws MK_E_UNAVAILABLE exception in C#
Marshal.GetActiveObject() throws MK_E_UNAVAILABLE exception in C# The following vbscript code works prefectly fine: But when I translate it into C# code as below: ``` class Program { [STAThread] s...
- Modified
- 12 Oct at 06:49