Click to open or copy the LABRADOR project files.
This sample shows how to use ATL to implement an EXE server. The server allows creation of an object that supports two custom interfaces, defined in Labrador.idl. Compiler COM support is used to implement custom interfaces that perform non-trivial marshaling of a C-style array.
Compare this sample with the LABRADOR sample in the ATL directory.
You need to build and set up three components: the server, the marshaling DLL, and the driver.
The Server
/RegServer
command-line option to set up the registry (for convenience, a custom build rule does this for you). The Marshalling DLL
NMAKE -f labps.mak
REGSVR32 labps.dll
The Driver
This sample demonstrates the following keywords:
#import; _com_ptr_t; _com_error.
See also Compiler COM Support and ATL LABRADOR sample.