Partager via


IMPLEMENT_OLECREATE

 

Either this macro or IMPLEMENT_OLECREATE_FLAGS must appear in the implementation file for any class that uses DECLARE_OLECREATE.

Syntax

IMPLEMENT_OLECREATE(
class_name
, external_name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8 )

Parameters

  • class_name
    The actual name of the class.

  • external_name
    The object name exposed to other applications (enclosed in quotation marks).

  • l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8
    Components of the class's CLSID.

Remarks

Note

If you use IMPLEMENT_OLECREATE, by default, you support only the single threading model. If you use IMPLEMENT_OLECREATE_FLAGS, you can specify which threading model your object supports by using the nFlags parameter.

The external name is the identifier exposed to other applications. Client applications use the external name to request an object of this class from an automation server.

The OLE class ID is a unique 128-bit identifier for the object. It consists of one long, two WORDs, and eight BYTEs, as represented by l, w1, w2, and b1 through b8 in the syntax description. The Application Wizard and code wizards create unique OLE class IDs for you as required.

Requirements

Header: afxdisp.h

See Also

MFC Macros and Globals
DECLARE_OLECREATE
CLSID Key