Bagikan melalui


OBJECT_ENTRY

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 )

Parameters

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

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

Remarks

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

ObjectMain

Requirements

Header: atlcom.h

See Also

Reference

OBJECT_ENTRY_AUTO

Other Resources

ATL Macros