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

  1. DUNION
  2.  
  3.  
  4. The DUNION program illustrates discriminated unions.
  5.  
  6. FILES
  7. =====
  8.  
  9. The directory samples\rpc\handles\data\dunion contains the following files
  10. to build the distributed application DUNION:
  11.  
  12. File          Description
  13.  
  14. README.TXT    Readme file for the DUNION sample
  15. DUNION.IDL    Interface definition language file
  16. DUNION.ACF    Attribute configuration file
  17. DUNIONC.C     Client main program
  18. DUNIONS.C     Server main program
  19. DUNIONP.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 dunionc.exe
  46. (client) and dunions.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 dunionc.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 dunion.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.   dunions
  80.  
  81. On the client, enter:
  82.  
  83.   net start workstation
  84.   dunionc
  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.   dunionc -?
  94.  
  95. For a listing of switches available from the server program, enter:
  96.  
  97.   dunions -?
  98.