Microsoft Foundation OLE Classes (mfcole.hlp) (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COleServer::OnCreateDocFromTemplate
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.
 
 
                                     -♦-