Questions tagged [com-server]
42 questions
1
vote
2 answers
How to specify which COM server my .NET interop should use?
I've got a .NET application which uses a COM server. The COM server is registered on the machine where I run it, so when my code reaches new MyInterop.SomeObject() the appropriate MyComServer.exe is started.
However, as I'm debugging, I've got…

Vilx-
- 104,512
- 87
- 279
- 422
1
vote
2 answers
How to handle COM events in console application with ATL - client's suspensions
I'm totally new in COM programming.
I have big problem. I’m trying to handle events from CANoe application via COM Server. Firstly I tried do it in native C++ but without results. Now I’m trying it by using ATL. I'm doing something wrong but I don’t…

meler
- 43
- 2
- 5
1
vote
1 answer
Can I debug com server in Qt Creator?
I have a clipboard program that implements a COM interface(IDataObject). The com server runs correctly, i.e., the com client can connect to it and retrieve data from it without problem. The problem is the COM server cannot break at breakpoints when…

William
- 761
- 2
- 10
- 27
1
vote
1 answer
Is there any harm in killing a COM server without releasing com objects in .net?
Folks - I'm creating many COM servers (I'm launching numerous EXEs) in .net, talking to COM via COM -interop, using numerous COM objects in the server, etc. If I kill the process, is there any harm? Is there anything bad about NOT releasing all…

Suraj
- 35,905
- 47
- 139
- 250
1
vote
1 answer
What does _com_interfaces_ do?
I'm trying to understand the COM server examples of pywin32, and in win32comext/shell/demos/servers/icon_handler.py I saw the line
_com_interfaces_ = [shell.IID_IExtractIcon, pythoncom.IID_IPersistFile]
While that pretty clearly refers to an…

Tobias Kienzler
- 25,759
- 22
- 127
- 221
1
vote
2 answers
Avoid to bring MSI in compatibility mode "Previous version of Windows"
I have an installer package for a 32-bit Application (built with MakeMsi, originally for Windows XP, and simplicisticly maintained since then), that fails registering a COM server on modern (64-bit) Windows systems (7, 8, 10). This is what I see…

Wolf
- 9,679
- 7
- 62
- 108
1
vote
1 answer
How do I get the path of a registered COM server in C#?
Is there a nice way to programmatically get the path of a registered COM server in C#?
We have an out-of-process COM server (i.e., an exe-file) that we reference in our C# project; however we want to enforce that we run the COM server from a…

Anders Gaarde
- 11
- 1
1
vote
0 answers
How To Initialize COM Impersonation for Surrogate Server running as different user?
I have an application running as a user other than the logged on user. I have a COM server in dllhost.exe that runs under the logged on user's credentials.
How can I set COM security on the client so that I am able to talk to the server? I get a…

Sri
- 233
- 2
- 13
1
vote
0 answers
How do i ensure i can import pythoncom and pywintypes so i can build a COM server in python 3.4?
Im a trying to build a COM server in Python. I have downloaded and installed Pywin32 (I use 32-bit version of Python 3.4.1, so I downloaded and installed pywin32 for this version).
Now, in order to import pythoncom in IDLE, I need to have two .dll…

Thdh
- 81
- 4
1
vote
0 answers
Access COM server Methods using C#
I wrote a com server implementation in python. The code is as follows.
import pythoncom
class PythonUtilities:
_public_methods_ = [ 'SplitString' ]
_reg_progid_ = "PythonDemos.Utilities"
_reg_clsid_ = pythoncom.CreateGuid()
…

Ravindu Kottahachchi
- 91
- 1
- 10
1
vote
0 answers
::CoResumeClassObect() fails on Windows Server 2012 R2 with HRESULT : 0x800706c6(The array bounds are invalid)
I have a COM Server , and I want to use it as a service. My application has a installer component which creates a user (CN_Service) in local system and install this COM server as a service using below command:
Connect.exe /service /noreinstall…

Akshay Jangir
- 96
- 7
1
vote
1 answer
Out of Process COM Server - One server process per calling process?
I have an out of process com server, specifying CLSCTX_LOCAL_SERVER as the context, and REGCLS_MULTIPLEUSE for the connection type. This results in a single server process being reused by multiple calls from multiple clients.
I’m now wanting to make…

cal
- 33
- 6
1
vote
1 answer
Update excel spreadsheet from another thread
I've created COM server using C# where my clients can receive real time updates.
Updates usually fired from different threads.
But I've noted that Excel crashes when callback methods updates spreadsheet.
Is there any way to call updates in UI…

Vitaliy
- 702
- 6
- 19
1
vote
1 answer
Python COM server throws 'module' object has no attribute 'VARIANT'
Here is a COM server implemented in Python:
from win32com.server.exception import COMException
import pythoncom
import sys
import os
from string import Template
import logging
import logging.config
class Connector:
_reg_clsctx_ =…

CarbonMan
- 4,350
- 12
- 54
- 75
0
votes
0 answers
COMException using getVariable from MLApp Matlab class on c#
I'm using MLApp for a .net framework project that uses WPF, and I'm able to run matlab commands, but when I try to use the getVariable function I get the following exception:
System.Runtime.InteropServices.COMException (0x80020009)
en…

Gowhi
- 1
- 1