Partager via


COleTemplateServer::ConnectTemplate

Connects the document template pointed to by pDocTemplate to the underlying COleObjectFactory object.

void ConnectTemplate(
   REFCLSID clsid,
   CDocTemplate* pDocTemplate,
   BOOL bMultiInstance 
);

Parameters

  • clsid
    Reference to the OLE class ID that the template requests.

  • pDocTemplate
    Pointer to the document template.

  • 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.

Remarks

For more information, see CLSID Key in the Windows SDK.

Requirements

Header: afxdisp.h

See Also

Reference

COleTemplateServer Class

Hierarchy Chart

CDocTemplate Class

Other Resources

COleTemplateServer Members