Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


The OBJECT_ENTRY macro is obsolete. It is provided for backward compatibility. Use OBJECT_ENTRY_AUTO.

Object entry macros can be placed in the object map to provide support for the registration, initialization, and creation of a class.

OBJECT_ENTRY( clsid, class )


[in] The CLSID of a COM class implemented by the C++ class named class.


[in] The name of the C++ class implementing the COM class represented by clsid.

Start your object map with the BEGIN_OBJECT_MAP macro, add entries for each object with the OBJECT_ENTRY or OBJECT_ENTRY_NON_CREATEABLE_EX_AUTO macro, and complete the map with the END_OBJECT_MAP macro.

The table below describes how the information added to the object map is obtained from the class given as the second parameter to this macro.

Information for

Obtained from

COM registration

Registry Macros

Class factory creation

Aggregation and Class Factory Macros

Instance creation

Aggregation and Class Factory Macros

Component category registration

Category Macros

Class-level initialization and cleanup


Header: atlcom.h


Other Resources

Community Additions

© 2015 Microsoft