Microsoft Foundation OLE Classes (mfcole.hlp) (Topic list)
COleServer::OnCreateDoc
COleServer                                  Up Contents Index Back
──Microsoft Foundation OLE Classes──────────────────────────────────────────
  protected:
      virtual COleServerDoc* OnCreateDoc( const char FAR* <lpszClass>,
                 const char FAR* <lpszDoc> ) = 0;
 
  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).
 
  Remarks
 
  You must implement this callback function to (1) create an OLE server
  embedded document of the correct class or (2) return a pointer to an
  existing OLE server document object.
 
  Return Value
 
  If successful, a pointer to a newly created OLE server document;
  otherwise NULL.
 
 
                                     -♦-