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

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