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.
COleClientDoc::Register
COleClientDoc                               Up Contents Index Back
──Microsoft Foundation OLE Classes──────────────────────────────────────────
 
  BOOL Register( const char FAR* lpszClass, const char FAR* lpszDoc );
 
  Parameter   Description
 
  <lpszClass> A null-terminated string that specifes the name of the
              client document's class, usually the client application
              name.
 
  <lpszDoc>   A null-terminated string that specifies the name of the
              client document. This must be a unique name such as the
              fully qualified name of the document's disk file.
 
  Remarks
 
  After you construct the C++ object, you must call this function to
  register your client document.
 
  If the client application needs to copy native-format data to the
  Clipboard, that data contains objects, and there is no disk file
  involved, then <lpszDoc> must be "Clipboard."
 
  Return Value
 
  TRUE if the document was successfully registered with OLECLI.DLL;
  otherwise FALSE.
 
  See Also
 
  COleClientDoc::COleClientDoc
 
 
                                     -♦-