Click to open or copy the Marshal project files.
Click to open or copy the Include files (required).
Click to open or copy the Library files (required).
Note To use this sample, you must first build the Register sample.
The Marshal sample anticipates the interaction of client and out-of-process servers in the Locclien and Locserve samples. For the Locclien client to use the services in the Locserve server requires marshaling of the automobile-related interfaces used in the other COM samples. This code sample creates a standard marshaling server for the ICar, IUtility, and ICruise custom interfaces.
The Microsoft Interface Definition Language (MIDL) compiler is used to compile the interface specifications (expressed in MIDL in MICARS.IDL). MIDL.EXE is a utility provided as part of the Platform SDK. The MIDL compilation of MICARS.IDL produces additional source files: MICARS.H, MICARS_I.C, MICARS_P.C, and DLLDATA.C.
The Marshal sample works with the Locserve and Locclien code samples to illustrate a COM client using the interfaces on COM objects in an out-of-process local server. In these samples, only standard marshaling is used for the custom ICar, IUtility, and ICruise interfaces.
See the parent topic, COM Tutorial Samples, to download global tutorial files or any HTML files about this sample.