This documentation is archived and is not being maintained.

LABRADOR Sample: Implements a Server with an Out-of-Proc Custom Interface and Compiler COM Support

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 nontrivial marshaling of a C-style array.

Compare this sample with the LABRADOR sample in the ATL directory.

Building and Running the Sample

To build and run this sample

  1. Open the solution labrador.sln.
  2. On the Build menu, click Build Solution. Note that a compiler warning will occur because this sample uses the obsolete ATL class CComModule. Refer to the ATL version of this sample to see how to use CAtlExeModule.
  3. Set labdriv as the startup project (right-click the project node and click Set as StartUp Project).
  4. On the Debug menu, click Start Without Debugging.


This sample demonstrates the following keywords:

#import; _com_ptr_t; _com_error

See Also

Compiler COM Support Samples | Compiler COM Support | ATL LABRADOR sample