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 / doctor / readme.txt < prev   
Encoding:
Text File  |  1996-01-17  |  2.6 KB  |  101 lines

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