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::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.
 
 
                                     -♦-