DECLARE_NOT_AGGREGATABLE

This macro specifies that your object cannot be aggregated. DECLARE_NOT_AGGREGATABLE causes CreateInstance to return an error (CLASS_E_NOAGGREGATION) if an attempt is made to aggregate onto your object.

At a Glance

Header file: Atlcom.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

DECLARE_NOT_AGGREGATABLE( x )

See Also

ATL Macros and Global Functions, DECLARE_ONLY_AGGREGATABLE