Chapter 5. Method Invocation and Marshaling

So far, we've talked about the relationship between interfaces, vtables, and RPCs. Interfaces can be looked at as RPC channels of communication, and you saw how the methods of an interface can be defined in IDL and then compiled by MIDL.EXE into proxy/stub code. Although there are a number of additional details, the COM-based interface implementation can be viewed as a more object-oriented version of the traditional RPC implementation—in either case, you define your interfaces and methods in Interface Definition Language (IDL). MIDL.EXE generates the appropriate proxy/stub code necessary to allow method calls made to your object to traverse the network via RPC.

COM RPC borrows from traditional RPC in ...

Get Applying COM+ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.