The source code and build and run instructions for all custom marshaling and hook class samples are in %SDKDIR%\Samples\Com\CustomMarshal. (For more information, see the COM Samples Overview. For information about other samples in this SDK, see the Samples Overview.)
The %SDKDIR%\Samples\Com\CustomMarshal\client directory contains the sources for a sample Java client and a C++ inproc COM server that exchange all the various types implemented by the example. For more information, see the COM Samples Overview. For information about other samples in this SDK, see the Samples Overview.
To run the example, change the current directory to the run location and type GO.
To build the sample client
Use Nmake.exe to compile the makefile in the \Samples\Com\CustomMarshal directory.