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.
class COleServer
◄CObject►                                     ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation OLE Classes──────────────────────────────────────────
 
  Description
 
  COleServer is the Microsoft Foundation Class Library base class for
  Object Linking and Embedding (OLE) servers. A server receives requests
  from OLESVR.DLL, and it responds by creating or opening documents,
  closing documents, exiting, and so forth. Most server applications
  support one server object, but some applications support multiple
  servers. Microsoft Excel, for example, has two server objects, one for
  worksheets and the other for charts.
 
  #include <afxole.h>
 
  See Also
 
  ◄COleServerDoc►, ◄COleServerItem►
 
  Public Members
 
  Data Members
 
  ◄m_bLaunchEmbedded►   A flag that is set to TRUE if the program has been
                        launched as an embedded server.
 
  Construction/Destruction
 
  ◄COleServer►   Constructs a COleServer object.
 
  ◄~COleServer►   Destroys the object.
 
  Registration/Revocation
 
  ◄Register►      Registers the server (called after the constructor).
 
  ◄BeginRevoke►   Begins server shutdown (called by the destructor).
 
  Status
 
  ◄IsOpen►   Indicates whether the server is currently operational and
             registered.
 
  Protected Members
 
  Overridables (callbacks)
 
  ◄OnCreateDoc►   Called to create a new OLE server embedded document.
 
  ◄OnEditDoc►     Called to open an existing OLE server embedded document
                  for editing.
 
  ◄OnOpenDoc►     Called to open an existing OLE server-linked document.
 
  ◄OnCreateDocFromTemplate►
                  Called to create a new OLE server document from a
                  template.
 
  ◄OnExecute►     Used for DDE Execute messages.
 
  ◄OnExit►        Called to inform you that the server should exit.
 
  ◄OnRelease►     Called to clean up when the server is released.
 
 
                                     -♦-