home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / dcom / simple / readme.txt < prev    next >
Text File  |  1996-05-06  |  1KB  |  37 lines

  1. Simple Network OLE Sample
  2.  
  3. DCOM is implemented only on Windows NT 4.0 and later versions.  This sample
  4. will not work correctly on Windows 95 or on earlier versions of Windows NT.
  5.  
  6. The SIMPLE sample demonstrates the minimum requirements to use a COM object,
  7. whether it is on the same machine or on a different machine. This sample
  8. consists of a client and a server portion.
  9.  
  10. The server application, SSERVER.EXE, implements the CLSID_SimpleObject class as
  11. a LocalServer. Instances of the class supports a limited form of the IStream
  12. interface. Calls to Read and Write succeed, but they do nothing. Calls to other
  13. methods fail with E_NOTIMPL.
  14.  
  15. The client application, SCLIENT.EXE, uses the CLSID_SimpleObject class
  16. implemented by the server.
  17.  
  18. To compile
  19. ----------
  20.  
  21. Build the sample using the NMAKE command.
  22.  
  23. To run
  24. ------
  25.  
  26. The run the sample, use the following steps.
  27.  
  28.  - Edit the SSERVER.REG file to make the LocalServer32 key point to the location
  29.    of SSERVER.EXE.
  30.  - Install the server on the current machine or a remote machine by running
  31.    INSTALL.BAT. This copies SSERVER.REG to the registry.
  32.  - Run SSERVER. It should display the message "Waiting...".
  33.  - Run SCLIENT. Use no command-line arguments to instantiate the object on the
  34.    current machine. Use the name of a remote machine (UNC or DNS) as an argument
  35.    to instantiate the object on the remote machine. SCLIENT displays simple
  36.    information about the calls it is making on the object.
  37.