COleObjectFactory::COleObjectFactory

COleObjectFactory( REFCLSID clsid, CRuntimeClass* pRuntimeClass, BOOL bMultiInstance, LPCTSTR lpszProgID );

Parameters

clsid

Reference to the OLE class ID this object factory represents.

pRuntimeClass

Pointer to the run-time class of the C++ objects this factory can create.

bMultiInstance

Indicates whether a single instance of the application can support multiple instantiations. If TRUE, multiple instances of the application are launched for each request to create an object.

lpszProgID

Pointer to a string containing a verbal program identifier, such as “Microsoft Excel.”

Remarks

Constructs a COleObjectFactory object, initializes it as an unregistered object factory, and adds it to the list of factories. To use the object, however, you must register it.

For more information, see CLSID Key in the OLE 2 Programmer’s Reference, Volume 1.

COleObjectFactory OverviewClass MembersHierarchy Chart

See Also   CRuntimeClass