Tagged Questions

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 ...

learn more… | top users | synonyms (1)

1
vote
0answers
13 views

COM Object in WCF Service

My WCF Service, written in .NET 4.0, has a problem that the second, or any other call get stuck. The WCF Service does nothing else than calling a COM Object written in Delphi XE. The threading model ...
0
votes
3answers
26 views

inheriting interface & IUnknown ,IDispatch methods definitions

i need to inherit an interface with abstract methods , in VB/c# we simply override methods from our interface while there is no need to code for IUnknown or IDispatch methods but in c++, after ...
3
votes
1answer
40 views

How to generate deprecated warning for a method in a COM interface (c++)

We are using a "COM-like" model where I work, as we generally follow COM rules, but do not perform MIDL compiling and do not target other languages than c/c++. As such, I know I can always bend the ...
0
votes
2answers
25 views

Do apartments “live” on the server side or on the client side in a out-process environment?

I' having an hard time trying to understand COM apartments in outprocess environment. Basically I can't understand why the client is required to call CoInitializeEx to register it's own thread in an ...
0
votes
1answer
27 views

Full list of functions, commands for MS Word from c++

I'm working with word through my c++ application. And I want to read some documentation about available opportunities. I see some piece of code of some paticular situations (to add a picture, to add ...
0
votes
0answers
16 views

Unable to cast COM object of type '…' to interface type '…' while using an ExeCOMServer

I'm using this exe com server: https://cfx.svn.codeplex.com/svn/Visual%20Studio%202008/CSExeCOMServer/ExeCOMServer.cs my prog is a com app this is my com method which take another com object void ...
1
vote
0answers
40 views

PHP calling a COM server written in C# and trying to pass a PHP array to a function expecting SAFEARRAY(BSTR)*

I am getting Error 0x80070057: The parameter is incorrect, from my php script ( run in command line ) . It is calling a COM server I wrote in C#. I also have a C++ client that is working . Please ...
0
votes
1answer
7 views

Asynchronous call of inprocess COM-DLL from VSTO Excel Addin?

I am developing an application level VSTO 4 Addin for Microsoft Excel 2007 / 2010. The result is a windows forms based DLL using .Net 4 Client Profile. Now I have to use a legacy COM-DLL. It is no ...
1
vote
1answer
28 views

How can I set the length, when creating a BSTR (using _bstr_t wrapper) by a native string?

When creating a BSTR (using _bstr_t as wrapper class) I have to use some of the constructors of _bstr_t. Since a BSTR is a length prefixed string that may contains null-characters, there must be a ...
1
vote
1answer
20 views

Close Excel without saving in PHP

I am using the Excel.Application COM object on my windows server. Currently I am using : $this->excel->Quit(); but it launches a diablog box asking to save. I would like to know if we can force ...
0
votes
1answer
33 views

How can you automatically update a .NET project COM reference?

I have a legacy VB6 COM DLL that's included as a reference in a .NET project. My manual build process looks like this: Build VB6 DLL Copy VB6 DLL to reference directory Register VB6 DLL with ...
0
votes
1answer
29 views

Setting up an Outlook email programmatically in Windows

How would I go about this? What language would I need to use (Python preferred, as the rest of my installation script is in Python)? Something with access to the .NET libraries (VB.NET, C#, ...
1
vote
0answers
11 views

How do proxy/stub and typelib marshaling performance compare?

Suppose I need to implement an out-proc COM server and all the COM-interfaces are Automation-compatible. I can either create and register a proxy/stub combination or create and register a type library ...
0
votes
1answer
18 views

what does “OLE The application called an interface that was marshalled for a different thread” after calling RevokeDragDrop mean?

I'm still trying to figure out the answer to this question. I would appreciate a nudge in the right direction (since I have very little experience in OLE). Did anyone encounter a similar error after ...
1
vote
0answers
8 views

Registration-Free COM in ASP WebPage

I have a Webpage application which uses in the code behind DLL's and OCX's, some of these DLLs are VB6 ones and the others are C++. At the moment the access to these DLL's / OCX's is through the ...

1 2 3 4 5 322
15 30 50 per page