Questions tagged [com]

Component Object Model (COM) is a component technology from Microsoft, featuring remoting, language independence and interface-based programming. For questions about the COM serial port, you should use the [serial-port] tag instead.

Component Object Model (COM) specifies an architecture, a binary standard, and a supporting infrastructure for building, using, and evolving component-based applications.

Some of the core features of COM are:

  • A remoting infrastructure
  • The use of interface-based programming
  • A threading model
  • The ability to write language independent components.

COM is the foundation of technologies such as OLE, ActiveX and COM+.

COM predates .NET and although .NET has replaced some of the features that developers use COM for it is still a crucial technology and the foundation of most inter application communication on Windows.

External links

12235 questions
4
votes
0 answers

Excel COM Object in PowerShell

SharePoint Online has a mostly undocumented method of populating a list of SharePoint Online sites that an administrator pushes out to its users. Based on the presence/values of some registry keys, the client workstation knows when to ask…
pk.
  • 380
  • 1
  • 13
4
votes
2 answers

BusinessObjects XI COM Support

I have an application that uses the Crystal Report COM SDK to create and manipulate reports against a Crystal Enterprise 10 repository. I would like to upgrade from Crystal Enterprise 10 to BusinessObjects XI and try to minimize changes to the…
Randy Levy
  • 22,566
  • 4
  • 68
  • 94
4
votes
1 answer

ArrayList, activeX and Delphi

I am an amator astronomer and I write driver for telescope with Delphi and the standard ASCOM First a special thank to David Heffernan who has helped me a lot these 2 last months. I have made a lot of progress in the writing of drivers, and there is…
michastro
  • 91
  • 9
4
votes
1 answer

Why does iterating a Hashtable with `For Each` not work in VBScript?

Why can one iterate an ArrayList using For Each but not a Hashtable? Dim i For Each i In CreateObject("System.Collections.ArrayList") ' no error Next For Each i In CreateObject("System.Collections.Hashtable") ' error Next Iterating the HashTable…
Micha Wiedenmann
  • 19,979
  • 21
  • 92
  • 137
4
votes
1 answer

Loading and using a type Library (.tlb) at runtime

I have a .tlb file, which exposes, via COM, functions of a C# DLL. I wish to load this .tlb at runtime and use the functions within my native project. While I can load the library by using LoadTypeLib function, I am not sure how the ITypeLib…
user1173240
  • 1,455
  • 2
  • 23
  • 50
4
votes
3 answers

Error building Visual Studio solution using MsBuild

I have a Visual Studio 2013 solution (MySolution2013.sln) containg a number of C# project using .NET 4.5.1. When building MySolution2013.sln in VS2015 everything compiles fine. When I run the following command from the command…
Helan
  • 135
  • 2
  • 3
  • 10
4
votes
3 answers

Release com objects at application crash

Is there a way to release com objects at application crash? I have the following code: public class Application : IDisposable { private bool disposed = false; private object realApplication; public void Dispose() { …
Marat Faskhiev
  • 1,282
  • 6
  • 17
  • 37
4
votes
1 answer

Call non-default constructor of COM class

I have a DLL (written in C#) containing a class with 2 Constructors; a default (no arguments) constructor, and another one with 3 arguments. In VBscript, I want to call the second constructor, but CreateObject only receives a classValue parameter,…
Elist
  • 5,313
  • 3
  • 35
  • 73
4
votes
2 answers

COM Client/Server cross 64/32 bit processes

On a 64-bit machine: Can a 64-bit application call a COM server (out proc) which is running in 32-bit process? What about vice versa? (32 bit app calling 64-bit COM out proc server) Thanks!
Saar
  • 1,753
  • 6
  • 20
  • 32
4
votes
6 answers

Building ActiveQt (COM) applications with MinGW

I am using Qt 4.6.3 with MinGW on Windows to build Qt apps and now need to add a COM interface to my application. I enabled ActiveQt but was getting post-link errors because I was missing a copy of the MIDL compiler. I downloaded a copy of the…
Rob
  • 76,700
  • 56
  • 158
  • 197
4
votes
1 answer

How to show ICredentialProviderCredentialv2 on more than one User tile on the other user tile

I'm trying to develop a Credentialprovider v2. I'm experimenting around with the samplecredentialproviderv2 provided by Microsoft.After installing the redistributable 2013 and compiling for the right architecture, I'd registered it and it worked. My…
4
votes
1 answer

Is there any internal timeout in Microsoft UIAutomation?

I am using the UI Automation COM-to-.NET Adapter to read the contents of the target Google Chrome browser that plays a FLASH content on Windows 7. It works. I succeeded to get the content and elements. Everything works fine for some time but after…
Patrik
  • 1,286
  • 1
  • 31
  • 64
4
votes
1 answer

How to implement sink for C++ COM event handling?

I'm struggling to understand event handling when using COM. I have a COM object interface developed by a 3rd party that should fire some events. I need to handle these events from a C++ application. So far I have the following code to setup the…
innova
  • 143
  • 7
4
votes
0 answers

Is there a way to find HRESULT C definition by value?

I'm curious if there's a resource to look up HRESULT error codes C definitions by value? For instance, if I have 0x80004002 where can I get E_NOINTERFACE definition for it?
c00000fd
  • 20,994
  • 29
  • 177
  • 400
4
votes
1 answer

C# late binding to com/activeX server, trouble with one method

I am fairly new to Interop/Com/ActiveX etc, so bear with me. I am late binding into a com/activex (not sure which one) server (basically an exe not a dll). I am successfully using all the methods in that server except for one, here is the…
Roelf
  • 41
  • 2
1 2 3
99
100