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

  1. HELLO
  2.  
  3.  
  4. The HELLO program is a client/server implementation of the classic "Hello,
  5. world" program.
  6.  
  7. FILES
  8. =====
  9.  
  10. The directory samples\rpc\hello contains the following files for
  11. building the sample distributed application HELLO:
  12.  
  13. File          Description
  14.  
  15. README.TXT    Readme file for the HELLO sample
  16. HELLO.IDL     Interface definition language file
  17. HELLO.ACF     Attribute configuration file
  18. HELLOC.C      Client main program
  19. HELLOS.C      Server main program
  20. HELLOP.C      Remote procedures
  21. MAKEFILE      Nmake file to build for Windows NT or Windows 95
  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 helloc.exe (client) and 
  47. hellos.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 helloc.exe.
  62.  
  63. You may also execute the Microsoft Visual C/C++ compiler under 
  64. MS-DOS. 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 hello.h
  69.  
  70.   Step Two: Compile the C sources (stub and application) under 
  71.     MS-DOS:
  72.  
  73.      nmake -f makefile.dos
  74.  
  75. ------------------------------------------
  76. RUNNING THE CLIENT AND SERVER APPLICATIONS
  77. ------------------------------------------
  78.  
  79. On the server, enter:
  80.  
  81.   hellos
  82.  
  83. On the client, enter:
  84.  
  85.   net start workstation
  86.   helloc
  87.  
  88. Note: The client and server applications can run on the same 
  89. Microsoft Windows NT computer when you use different screen groups.
  90.  
  91. Several command-line switches are available to change settings for 
  92. this program. For a listing of the switches available from the client 
  93. program, enter:
  94.  
  95.   helloc -?
  96.  
  97. For a listing of switches available from the server
  98. program, enter:
  99.  
  100.   hellos -?
  101.