home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / handles / auto / readme.txt < prev   
Encoding:
Text File  |  1996-01-17  |  3.1 KB  |  117 lines

  1. AUTO
  2.  
  3.  
  4. The AUTO program demonstrates the use of the ACF attribute auto_handle in 
  5. a distributed application that generates a time stamp. 
  6.  
  7. The directory samples\rpc\handles\auto contains the following files to
  8. build the distributed application AUTO:
  9.  
  10. File          Description
  11.  
  12. README.TXT    Readme file for the AUTO sample
  13. AUTO.IDL      Interface definition language file
  14. AUTO.ACF      Attribute configuration file
  15. AUTOC.C       Client main program
  16. AUTOS.C       Server main program
  17. AUTOP.C       Remote procedures
  18. MAKEFILE      Nmake file to build for Windows NT or Windows 95
  19. MAKEFILE.DOS  Nmake file to build for MS-DOS
  20.  
  21. -------------------------------------------
  22. BUILDING CLIENT AND SERVER APPLICATIONS FOR
  23. MICROSOFT WINDOWS NT OR WINDOWS 95
  24. -------------------------------------------
  25.  
  26. The following environment variables should be already set for you:
  27.  
  28.   set CPU=i386
  29.   set INCLUDE=%SDKROOT%\h
  30.   set LIB=%SDKROOT%\lib
  31.   set PATH=%SDKROOT%\system32;%SDKROOT%\bin
  32.  
  33. where %SDKROOT% is the root directory for the 32-bit Windows SDK.
  34.  
  35. For mips, set CPU=mips
  36. For alpha, set CPU=alpha
  37.  
  38. Build the sample distributed application:
  39.  
  40.   nmake cleanall
  41.   nmake
  42.  
  43. This builds the executable programs autoc.exe (client) and
  44. autos.exe (server).
  45.  
  46. -----------------------------------------------------------------------
  47. BUILDING THE CLIENT APPLICATION FOR MS-DOS
  48. -----------------------------------------------------------------------
  49.  
  50. After installing the Microsoft Visual C/C++ version 1.50 development
  51. environment and the 16-bit RPC SDK on a Windows NT or Windows 95
  52. computer, you can build the sample client application from Windows NT
  53. or Windows 95:
  54.  
  55.   nmake -f makefile.dos cleanall
  56.   nmake -f makefile.dos
  57.  
  58. This builds the client application callc.exe.
  59.  
  60. You may also execute the Microsoft Visual C/C++ compiler under MS-DOS.
  61. This requires a two-step build process.
  62.  
  63.   Step One: Compile the .IDL files under Windows NT or Windows 95:
  64.     
  65.      nmake -a -f makefile.dos auto.h
  66.  
  67.   Step Two: Compile the C sources (stub and application) under MS-DOS:
  68.       
  69.      nmake -f makefile.dos
  70.  
  71. ------------------------------------------
  72. RUNNING THE CLIENT AND SERVER APPLICATIONS
  73. ------------------------------------------
  74.  
  75. On the server, enter:
  76.  
  77.   net start rpclocator
  78.   autos
  79.  
  80. (You can also start the RPC Locator by running the
  81. Services program in Control Panel.)
  82.  
  83. On the client, enter:
  84.  
  85.   net start workstation
  86.   autoc
  87.  
  88. Note: The client and server applications can run on
  89. the same Microsoft Windows NT computer when you use
  90. different screen groups.
  91.  
  92. Several command line switches are available to change
  93. settings for this program. For a listing of the switches
  94. available from the client program, enter:
  95.  
  96.   autoc -?
  97.  
  98. For a listing of switches available from the server
  99. program, enter:
  100.  
  101.   autos -?
  102.  
  103. ---------------------
  104. RUNNING ON WINDOWS 95
  105. ---------------------
  106.  
  107. If you wish to run the server on Windows 95, you will need to use
  108. the LRPC protocol.
  109.  
  110. To start the server, enter:
  111.  
  112.   autos -p ncalrpc
  113.  
  114. To start the client (from the same machine), enter:
  115.  
  116.   autoc -p ncalrpc
  117.