◄COleServer► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation OLE Classes────────────────────────────────────────── protected: virtual COleServerDoc* OnCreateDocFromTemplate( const char FAR* <lpszClass>, const char FAR* <lpszDoc>, const char FAR* <lpszTemplate> ); Parameter Description <lpszClass> A null-terminated string that specifies the class name of an OLE server document type. <lpszDoc> A null-terminated string that specifies the name of the new document (not a filename). <lpszTemplate> A null-terminated string that specifies the fully qualified name of a file that contains a template for creating a new server document. Remarks This callback function requires the server to open and read the contents of a file to use as the initial contents of a new server document. You must determine your own template file format. The OnCreateDocFromTemplate member function may be used with both linked and embedded documents. The default implementation does nothing. Return Value If successful, a pointer to a newly created OLE server document; otherwise NULL. Returns NULL if the server does not support this feature. -♦-