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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access