Standard Marshaling
Standard marshaling is accomplished using the Microsoft interface definition language (MIDL) compiler. Assuming that you have an interface called IMyInterface and you saved this interface in the file myinterface.idl, you can use the MIDL compiler to generate the proxy-stub code for the interface. The output of the MIDL compiler is made up of the following five files:
myinterface.h—A header file with the interface definition
myinterface_i.c—A source file with the IID constant definitions
myinterface_p.c—A source file with the proxy-stub code
dlldata.c—A source file with the proxy-stub DLL entry points
myinterface.tlb—The automation-capable type library to be used in type library marshaling
Listing 11.2 is a simple interface definition ...
Get COM+ Unleashed 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.