Questions tagged [dcom]

Distributed COM (DCOM) is a protocol that enables software components to communicate with one another over a network.

DCOM is the distributed extension of COM. It specifies the additional infrastructure that is required to further extend COM to networked environments and enable software components to communicate with one another over a network. DCOM is designed for use across multiple network transports, including Internet protocols such as HTTP. It is based on the OSF's DCE RPC specification and implemented as a layer over Microsoft RPC.

403 questions
7
votes
1 answer

what is a #define _WIN32_DCOM a in visual c++ project?

What is #define _WIN32_DCOM in a visual c++ project ? If I want to target the application build to x64, do I need to change it to WIN64_DCOM object ?
Ziyi Wang
  • 75
  • 1
  • 5
6
votes
4 answers

DCOM: How to close connection in server on client crash?

I have a rather old project: DCOM client and server, both in C++\ATL, only Windows platform. Everything works fine: local and remote clients connect to server and work simultaneously without any problem. But when remote client crashes or being…
Ezh
  • 579
  • 1
  • 7
  • 26
6
votes
2 answers

COM+ application deployment using command-line

I need to deploy my COM dll as a COM+ application. I used to do that from Component Services manager (dcomcnfg.exe). But my requirement is to deploy it from command-line. Is there a command to do that? Update: And how to uninstall the same? Thanks.
bdhar
  • 21,619
  • 17
  • 70
  • 86
5
votes
2 answers

Freeing a BSTR using ::SysFreeString(). More Platform Dependant?

I am writing a COM Server which have a plenty of Interfaces and methods. And most of the methods have the BSTR as the parameters and as local parameters used for the return. A snippet looks like Update 5: The real code. This fetches from bunch of…
Sathish Guru V
  • 1,417
  • 2
  • 15
  • 39
5
votes
2 answers

Access COM objects on another box from .NET (without deprecated DCOM, remoting)

I have to integrate my .NET server app with a vendor's product. The vendor's product will be on its own server and has a supported & documented API, but alas, only as COM objects. Since DCOM and .NET remoting are both deprecated, is there a…
Joel P.
  • 869
  • 10
  • 20
5
votes
1 answer

Disable prevent windows log event

I'm using WMI (Windows Management Instrumentation) to try to collect some information from a allot of remote computers. The issue is that every time I try to initiate a connection to a remote computer/resource using: //IWbemLocator::ConnectServer…
5
votes
1 answer

Does Vista do stricter checking of Interface Ids in DCOM calls? (the Stub received bad Data)?

I hope everyone will pardon the length, and narrative fashion, of this question. I decided to describe the situation in some detail in my blog. I later saw Joel's invitation to this site, and I thought I'd paste it here to see if anyone has any…
Howard Pinsley
  • 11,300
  • 15
  • 49
  • 66
5
votes
1 answer

DCOM server and client both written in .NET

I'm developing a DCOM server in .NET 4 (VS2010, C#). By itself, this is working fine. Now, I also need to develop a .NET client for this DCOM server, but I am unable to add a reference to the TypeLib. Visual Studio will tell me the type library was…
Thorarin
  • 47,289
  • 11
  • 75
  • 111
5
votes
3 answers

Calling QueryInterface with custom identity

Issue: I successfully call CoSetProxyBlanket on a proxy (if that's the right term for it) and then I call QueryInterface on that same proxy, but I receive a result of 0x80070005 ("Access Denied"). However, if I first call CoInitializeSecurity (which…
bruceceng
  • 1,844
  • 18
  • 23
5
votes
1 answer

How can I supress Delphi DataSnap error message dialogs?

We run a DataSnap Delphi 2009 application on Windows 2003 Server. DataSnap Client and Server are on the same computer, using DCOM over Borland Socketserver. The client runs a background batch job. Sometimes, we discover that the client can not…
mjn
  • 36,362
  • 28
  • 176
  • 378
5
votes
3 answers

Print/save Excel (.xlsx) sheet to PDF using R

I want to print an Excel file to a pdf file after manipulating it. For the manipulation I used the .xlsx package which works fine. There is a function printSetup but I cannot find a function to start the printing. Is there a solution for this?…
Mark Heckmann
  • 10,943
  • 4
  • 56
  • 88
5
votes
5 answers

DCOM: CoCreateInstanceEx returns E_ACCESSDENIED

I'm working on a DCOM application with the server and client on two machines, both of which are running WinXP with Service Pack 2. On both machines, I'm logged in with the same username and password. When the client on one machine calls…
Isaac Moses
  • 1,589
  • 6
  • 26
  • 44
5
votes
4 answers

DCOM Failure of Office Automation

I developed a C# program that pulls data from a SQL Server database and then generates Word documents which include the data. I've set the program up to run as part of an SSIS job on a Windows Server 2003 box. The program runs as user SQLSVC which…
Eric Ness
  • 10,119
  • 15
  • 48
  • 51
4
votes
1 answer

How to make a com interface from delphi work in windows seven

My company runs an old application written in delphi. A simple com server which serves some database for some computers. I have to run the server once in every computer to register the com interfaces and it have been working since the ancient days…
sky
  • 41
  • 4
4
votes
3 answers

Excel VBA to VB (DCOM)

I inherited an Excel VBA spreadsheet. I have been tasked to convert it to VB. I think that the application acquires data from a PLC using a DCOM object. The following code runs the sub SBR1Select when MX1.0 is updated. Sub Workbook_Open() …
Steven
1
2
3
26 27