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

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