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 / xmit / readme.txt < prev    next >
Encoding:
Text File  |  1996-01-15  |  2.7 KB  |  99 lines

  1. XMIT
  2.  
  3.  
  4. The XMIT program demonstrates the type-conversion attribute transmit_as.
  5.  
  6. FILES
  7. =====
  8.  
  9. The directory samples\rpc\data\xmit contains the following files for
  10. building the sample distributed application XMIT:
  11.  
  12. File          Description
  13.  
  14. README.TXT    Readme file for the XMIT sample
  15. XMIT.IDL      Interface definition language file
  16. XMIT.ACF      Attribute configuration file
  17. XMITC.C       Client main program
  18. XMITS.C       Server main program
  19. XMITP.C       Remote procedures
  20. XMITU.C       Utility functions for client, server
  21. XMITU.H       Utility function prototypes
  22. MAKEFILE      Nmake file to build for Windows NT or Windows 95
  23. MAKEFILE.DOS  Nmake file to build for MS-DOS
  24.  
  25. -------------------------------------------
  26. BUILDING CLIENT AND SERVER APPLICATIONS FOR
  27. MICROSOFT WINDOWS NT OR WINDOWS 95:
  28. -------------------------------------------
  29.  
  30. The following environment variables should be set for you already.
  31.  
  32.   set CPU=i386
  33.   set INCLUDE=%SDKROOT%\h
  34.   set LIB=%SDKROOT%\lib
  35.   set PATH=%SDKROOT%\system32;%SDKROOT%\bin;
  36.  
  37. Where %SDKROOT% is the root directory for the 32-bit Windows SDK.
  38.  
  39. For mips, set CPU=mips
  40. For alpha, set CPU=alpha
  41.  
  42. Build the sample distributed application:
  43.   nmake cleanall
  44.   nmake
  45.  
  46. This builds the executable programs xmitc.exe
  47. (client) and xmits.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 xmitc.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.      nmake -a -f makefile.dos xmit.idl
  68.  
  69.   Step Two: Compile the C sources (stub and application) under MS-DOS
  70.      nmake -f makefile.dos
  71.  
  72. ------------------------------------------
  73. RUNNING THE CLIENT AND SERVER APPLICATIONS
  74. ------------------------------------------
  75.  
  76. On the server, enter
  77.  
  78.   xmits
  79.  
  80. On the client, enter
  81.  
  82.   net start workstation
  83.   xmitc
  84.  
  85. Note:  The client and server applications can run on
  86. the same Microsoft Windows NT computer when you use
  87. different screen groups.
  88.  
  89. Several command line switches are available to change
  90. settings for this program. For a listing of the switches
  91. available from the client program, enter
  92.  
  93.   xmitc -?
  94.  
  95. For a listing of switches available from the server
  96. program, enter
  97.  
  98.   xmits -?
  99.