DECLARE_ONLY_AGGREGATABLE

This macro specifies that your object must be aggregated. DECLARE_ONLY_AGGREGATABLE causes an error (E_FAIL) if an attempt is made to CoCreate your object as nonaggregated object.

At a Glance

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

Syntax

DECLARE_ONLY_AGGREGATABLE( x )

See Also

ATL Macros and Global Functions, DECLARE_NOT_AGGREGATABLE