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
Connects the document template pointed to by pDocTemplate to the underlying COleObjectFactory object.
For more information, see CLSID Key in the OLE 2 Programmer’s Reference, Volume 1.
COleTemplateServer Overview | Class Members | Hierarchy Chart
See Also CDocTemplate