Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Out-of-process COM server without a proxy/stub DLL?

I am learning how to implement an out-of-process COM server and came across this Code Project article, Building a LOCAL COM Server and Client: A Step by Step Example.

I can build it, and it runs fine, but where is the proxy/stub DLL? All I can see is the IDL file from which the proxy/stub code is generated during the build. But how is the DLL built, and where is it?

like image 688
Dabbler Avatar asked Oct 20 '25 06:10

Dabbler


1 Answers

The short answer is that all the interfaces are marked "oleautomation", so oleaut32.dll performs the marshaling, since COM knows how to marshal all the types used in the interfaces.

If "oleautomation" were missing, or a type was specified that COM doesn't know how to marshal by default (see the list here), your nondefault marshaler and its stub would be required.

like image 64
Steve Avatar answered Oct 25 '25 03:10

Steve